Lines Matching full:vif

430 int wil_cid_fill_sinfo(struct wil6210_vif *vif, int cid,  in wil_cid_fill_sinfo()  argument
433 struct wil6210_priv *wil = vif_to_wil(vif); in wil_cid_fill_sinfo()
450 rc = wmi_call(wil, WMI_NOTIFY_REQ_CMDID, vif->mid, &cmd, sizeof(cmd), in wil_cid_fill_sinfo()
464 cid, vif->mid, WIL_EXTENDED_MCS_CHECK(tx_mcs), in wil_cid_fill_sinfo()
523 if (test_bit(wil_vif_fwconnected, vif->status)) { in wil_cid_fill_sinfo()
539 struct wil6210_vif *vif = ndev_to_vif(ndev); in wil_cfg80211_get_station() local
543 int cid = wil_find_cid(wil, vif->mid, mac); in wil_cfg80211_get_station()
546 vif->mid); in wil_cfg80211_get_station()
550 rc = wil_cid_fill_sinfo(vif, cid, sinfo); in wil_cfg80211_get_station()
579 struct wil6210_vif *vif = ndev_to_vif(dev); in wil_cfg80211_dump_station() local
582 int cid = wil_find_cid_by_idx(wil, vif->mid, idx); in wil_cfg80211_dump_station()
589 vif->mid); in wil_cfg80211_dump_station()
591 rc = wil_cid_fill_sinfo(vif, cid, sinfo); in wil_cfg80211_dump_station()
643 struct wil6210_vif *vif, in wil_cfg80211_validate_change_iface() argument
656 if (vif_pos && vif != vif_pos) { in wil_cfg80211_validate_change_iface()
678 struct wil6210_vif *vif; in wil_cfg80211_add_iface() local
719 vif = wil_vif_alloc(wil, name, name_assign_type, type); in wil_cfg80211_add_iface()
720 if (IS_ERR(vif)) in wil_cfg80211_add_iface()
721 return ERR_CAST(vif); in wil_cfg80211_add_iface()
723 ndev = vif_to_ndev(vif); in wil_cfg80211_add_iface()
731 addr[0] = (addr[0] ^ (1 << vif->mid)) | 0x2; /* locally administered */ in wil_cfg80211_add_iface()
734 wdev = vif_to_wdev(vif); in wil_cfg80211_add_iface()
737 rc = wil_vif_add(wil, vif); in wil_cfg80211_add_iface()
741 wil_info(wil, "added VIF, mid %d iftype %d MAC %pM\n", in wil_cfg80211_add_iface()
742 vif->mid, type, wdev->address); in wil_cfg80211_add_iface()
745 wil_vif_free(vif); in wil_cfg80211_add_iface()
749 int wil_vif_prepare_stop(struct wil6210_vif *vif) in wil_vif_prepare_stop() argument
751 struct wil6210_priv *wil = vif_to_wil(vif); in wil_vif_prepare_stop()
752 struct wireless_dev *wdev = vif_to_wdev(vif); in wil_vif_prepare_stop()
759 ndev = vif_to_ndev(vif); in wil_vif_prepare_stop()
761 rc = wmi_pcp_stop(vif); in wil_vif_prepare_stop()
767 wil_bcast_fini(vif); in wil_vif_prepare_stop()
778 struct wil6210_vif *vif = wdev_to_vif(wil, wdev); in wil_cfg80211_del_iface() local
795 if (vif->mid == 0) { in wil_cfg80211_del_iface()
800 rc = wil_vif_prepare_stop(vif); in wil_cfg80211_del_iface()
804 wil_info(wil, "deleted VIF, mid %d iftype %d MAC %pM\n", in wil_cfg80211_del_iface()
805 vif->mid, wdev->iftype, wdev->address); in wil_cfg80211_del_iface()
807 wil_vif_remove(wil, vif->mid); in wil_cfg80211_del_iface()
828 struct wil6210_vif *vif = ndev_to_vif(ndev); in wil_cfg80211_change_iface() local
829 struct wireless_dev *wdev = vif_to_wdev(vif); in wil_cfg80211_change_iface()
836 rc = wil_cfg80211_validate_change_iface(wil, vif, type); in wil_cfg80211_change_iface()
874 if (vif->mid != 0 && wil_has_active_ifaces(wil, true, false)) { in wil_cfg80211_change_iface()
876 wil_vif_prepare_stop(vif); in wil_cfg80211_change_iface()
877 rc = wmi_port_delete(wil, vif->mid); in wil_cfg80211_change_iface()
880 rc = wmi_port_allocate(wil, vif->mid, ndev->dev_addr, type); in wil_cfg80211_change_iface()
894 struct wil6210_vif *vif = wdev_to_vif(wil, wdev); in wil_cfg80211_scan() local
922 if (vif->scan_request || vif->p2p.discovery_started) { in wil_cfg80211_scan()
938 vif->scan_request = request; in wil_cfg80211_scan()
939 if (vif->mid == 0) in wil_cfg80211_scan()
941 rc = wil_p2p_search(vif, request); in wil_cfg80211_scan()
943 if (vif->mid == 0) in wil_cfg80211_scan()
946 vif->scan_request = NULL; in wil_cfg80211_scan()
952 (void)wil_p2p_stop_discovery(vif); in wil_cfg80211_scan()
965 rc = wmi_set_ssid(vif, request->ssids[0].ssid_len, in wil_cfg80211_scan()
968 rc = wmi_set_ssid(vif, 0, NULL); in wil_cfg80211_scan()
975 vif->scan_request = request; in wil_cfg80211_scan()
976 mod_timer(&vif->scan_timer, jiffies + WIL6210_SCAN_TO); in wil_cfg80211_scan()
1003 rc = wmi_set_ie(vif, WMI_FRAME_PROBE_REQ, in wil_cfg80211_scan()
1013 if (vif->mid == 0) in wil_cfg80211_scan()
1015 rc = wmi_send(wil, WMI_START_SCAN_CMDID, vif->mid, in wil_cfg80211_scan()
1020 del_timer_sync(&vif->scan_timer); in wil_cfg80211_scan()
1021 if (vif->mid == 0) in wil_cfg80211_scan()
1023 vif->scan_request = NULL; in wil_cfg80211_scan()
1034 struct wil6210_vif *vif = wdev_to_vif(wil, wdev); in wil_cfg80211_abort_scan() local
1041 if (!vif->scan_request) in wil_cfg80211_abort_scan()
1044 if (wdev != vif->scan_request->wdev) { in wil_cfg80211_abort_scan()
1052 wil_abort_scan(vif, true); in wil_cfg80211_abort_scan()
1130 struct wil6210_vif *vif = ndev_to_vif(ndev); in wil_ft_connect() local
1149 if (!test_bit(wil_vif_fwconnected, vif->status)) { in wil_ft_connect()
1154 if (vif->privacy != sme->privacy) { in wil_ft_connect()
1156 vif->privacy, sme->privacy); in wil_ft_connect()
1171 set_bit(wil_vif_ft_roam, vif->status); in wil_ft_connect()
1172 rc = wmi_send(wil, WMI_FT_AUTH_CMDID, vif->mid, in wil_ft_connect()
1175 mod_timer(&vif->connect_timer, in wil_ft_connect()
1178 clear_bit(wil_vif_ft_roam, vif->status); in wil_ft_connect()
1215 struct wil6210_vif *vif = ndev_to_vif(ndev); in wil_cfg80211_connect() local
1226 wil_dbg_misc(wil, "connect, mid=%d\n", vif->mid); in wil_cfg80211_connect()
1232 test_bit(wil_vif_fwconnected, vif->status)) in wil_cfg80211_connect()
1236 if (test_bit(wil_vif_fwconnecting, vif->status) || in wil_cfg80211_connect()
1237 test_bit(wil_vif_fwconnected, vif->status)) in wil_cfg80211_connect()
1273 vif->privacy = sme->privacy; in wil_cfg80211_connect()
1274 vif->pbss = sme->pbss; in wil_cfg80211_connect()
1276 rc = wmi_set_ie(vif, WMI_FRAME_ASSOC_REQ, sme->ie_len, sme->ie); in wil_cfg80211_connect()
1311 vif->bss = bss; in wil_cfg80211_connect()
1315 if (vif->privacy) { in wil_cfg80211_connect()
1317 rc = wmi_del_cipher_key(vif, 0, bss->bssid, in wil_cfg80211_connect()
1323 rc = wmi_del_cipher_key(vif, 0, bss->bssid, in wil_cfg80211_connect()
1334 if (vif->privacy) { in wil_cfg80211_connect()
1363 set_bit(wil_vif_fwconnecting, vif->status); in wil_cfg80211_connect()
1365 rc = wmi_send(wil, WMI_CONNECT_CMDID, vif->mid, &conn, sizeof(conn)); in wil_cfg80211_connect()
1370 vif->bss = bss; in wil_cfg80211_connect()
1372 mod_timer(&vif->connect_timer, in wil_cfg80211_connect()
1375 clear_bit(wil_vif_fwconnecting, vif->status); in wil_cfg80211_connect()
1390 struct wil6210_vif *vif = ndev_to_vif(ndev); in wil_cfg80211_disconnect() local
1393 reason_code, vif->mid); in wil_cfg80211_disconnect()
1395 if (!(test_bit(wil_vif_fwconnecting, vif->status) || in wil_cfg80211_disconnect()
1396 test_bit(wil_vif_fwconnected, vif->status))) { in wil_cfg80211_disconnect()
1401 vif->locally_generated_disc = true; in wil_cfg80211_disconnect()
1402 rc = wmi_call(wil, WMI_DISCONNECT_CMDID, vif->mid, NULL, 0, in wil_cfg80211_disconnect()
1438 struct wil6210_vif *vif = wdev_to_vif(wil, wdev); in wil_cfg80211_mgmt_tx() local
1460 rc = wmi_mgmt_tx(vif, buf, len); in wil_cfg80211_mgmt_tx()
1464 if (!params->chan || params->chan->hw_value == vif->channel) { in wil_cfg80211_mgmt_tx()
1467 rc = wmi_mgmt_tx(vif, buf, len); in wil_cfg80211_mgmt_tx()
1474 vif->channel, params->chan->hw_value); in wil_cfg80211_mgmt_tx()
1479 rc = wmi_mgmt_tx_ext(vif, buf, len, params->chan->hw_value, in wil_cfg80211_mgmt_tx()
1626 struct wil6210_vif *vif = ndev_to_vif(ndev); in wil_cfg80211_add_key() local
1628 struct wireless_dev *wdev = vif_to_wdev(vif); in wil_cfg80211_add_key()
1630 struct wil_sta_info *cs = wil_find_sta_by_key_usage(wil, vif->mid, in wil_cfg80211_add_key()
1647 if (!test_bit(wil_vif_ft_roam, vif->status)) { in wil_cfg80211_add_key()
1668 (vif->ptk_rekey_state == WIL_REKEY_M3_RECEIVED || in wil_cfg80211_add_key()
1669 vif->ptk_rekey_state == WIL_REKEY_WAIT_M4_SENT)) { in wil_cfg80211_add_key()
1671 vif->ptk_rekey_state = WIL_REKEY_WAIT_M4_SENT; in wil_cfg80211_add_key()
1676 rc = wmi_add_cipher_key(vif, key_index, mac_addr, params->key_len, in wil_cfg80211_add_key()
1682 vif->gtk_index = key_index; in wil_cfg80211_add_key()
1683 memcpy(vif->gtk, params->key, params->key_len); in wil_cfg80211_add_key()
1684 vif->gtk_len = params->key_len; in wil_cfg80211_add_key()
1700 struct wil6210_vif *vif = ndev_to_vif(ndev); in wil_cfg80211_del_key() local
1702 struct wireless_dev *wdev = vif_to_wdev(vif); in wil_cfg80211_del_key()
1704 struct wil_sta_info *cs = wil_find_sta_by_key_usage(wil, vif->mid, in wil_cfg80211_del_key()
1718 return wmi_del_cipher_key(vif, key_index, mac_addr, key_usage); in wil_cfg80211_del_key()
1755 struct wil6210_vif *vif = wdev_to_vif(wil, wdev); in wil_cancel_remain_on_channel() local
1759 return wil_p2p_cancel_listen(vif, cookie); in wil_cancel_remain_on_channel()
1880 static int _wil_cfg80211_set_ies(struct wil6210_vif *vif, in _wil_cfg80211_set_ies() argument
1888 wil_memdup_ie(&vif->proberesp, &vif->proberesp_len, bcon->probe_resp, in _wil_cfg80211_set_ies()
1890 wil_memdup_ie(&vif->proberesp_ies, &vif->proberesp_ies_len, in _wil_cfg80211_set_ies()
1892 wil_memdup_ie(&vif->assocresp_ies, &vif->assocresp_ies_len, in _wil_cfg80211_set_ies()
1907 rc = wmi_set_ie(vif, WMI_FRAME_PROBE_RESP, len, ies); in _wil_cfg80211_set_ies()
1912 rc = wmi_set_ie(vif, WMI_FRAME_ASSOC_RESP, in _wil_cfg80211_set_ies()
1915 rc = wmi_set_ie(vif, WMI_FRAME_ASSOC_RESP, len, ies); in _wil_cfg80211_set_ies()
1920 rc = wmi_set_ie(vif, WMI_FRAME_BEACON, in _wil_cfg80211_set_ies()
1936 struct wil6210_vif *vif = ndev_to_vif(ndev); in _wil_cfg80211_start_ap() local
1948 wil_dbg_misc(wil, "start_ap: mid=%d, is_go=%d\n", vif->mid, is_go); in _wil_cfg80211_start_ap()
1972 set_bit(wil_vif_ft_roam, vif->status); in _wil_cfg80211_start_ap()
1984 rc = wmi_set_ssid(vif, ssid_len, ssid); in _wil_cfg80211_start_ap()
1988 rc = _wil_cfg80211_set_ies(vif, bcon); in _wil_cfg80211_start_ap()
1992 vif->privacy = privacy; in _wil_cfg80211_start_ap()
1993 vif->channel = chan; in _wil_cfg80211_start_ap()
1994 vif->wmi_edmg_channel = wmi_edmg_channel; in _wil_cfg80211_start_ap()
1995 vif->hidden_ssid = hidden_ssid; in _wil_cfg80211_start_ap()
1996 vif->pbss = pbss; in _wil_cfg80211_start_ap()
1997 vif->bi = bi; in _wil_cfg80211_start_ap()
1998 memcpy(vif->ssid, ssid, ssid_len); in _wil_cfg80211_start_ap()
1999 vif->ssid_len = ssid_len; in _wil_cfg80211_start_ap()
2005 rc = wmi_pcp_start(vif, bi, wmi_nettype, chan, wmi_edmg_channel, in _wil_cfg80211_start_ap()
2010 rc = wil_bcast_init(vif); in _wil_cfg80211_start_ap()
2017 wmi_pcp_stop(vif); in _wil_cfg80211_start_ap()
2033 struct wil6210_vif *vif = wil->vifs[i]; in wil_cfg80211_ap_recovery() local
2038 if (!vif || vif->ssid_len == 0) in wil_cfg80211_ap_recovery()
2041 ndev = vif_to_ndev(vif); in wil_cfg80211_ap_recovery()
2042 bcon.proberesp_ies = vif->proberesp_ies; in wil_cfg80211_ap_recovery()
2043 bcon.assocresp_ies = vif->assocresp_ies; in wil_cfg80211_ap_recovery()
2044 bcon.probe_resp = vif->proberesp; in wil_cfg80211_ap_recovery()
2045 bcon.proberesp_ies_len = vif->proberesp_ies_len; in wil_cfg80211_ap_recovery()
2046 bcon.assocresp_ies_len = vif->assocresp_ies_len; in wil_cfg80211_ap_recovery()
2047 bcon.probe_resp_len = vif->proberesp_len; in wil_cfg80211_ap_recovery()
2050 "AP (vif %d) recovery: privacy %d, bi %d, channel %d, hidden %d, pbss %d\n", in wil_cfg80211_ap_recovery()
2051 i, vif->privacy, vif->bi, vif->channel, in wil_cfg80211_ap_recovery()
2052 vif->hidden_ssid, vif->pbss); in wil_cfg80211_ap_recovery()
2054 vif->ssid, vif->ssid_len, true); in wil_cfg80211_ap_recovery()
2056 vif->ssid, vif->ssid_len, in wil_cfg80211_ap_recovery()
2057 vif->privacy, vif->bi, in wil_cfg80211_ap_recovery()
2058 vif->channel, in wil_cfg80211_ap_recovery()
2059 vif->wmi_edmg_channel, &bcon, in wil_cfg80211_ap_recovery()
2060 vif->hidden_ssid, vif->pbss); in wil_cfg80211_ap_recovery()
2062 wil_err(wil, "vif %d recovery failed (%d)\n", i, rc); in wil_cfg80211_ap_recovery()
2066 if (!vif->privacy || vif->gtk_len == 0) in wil_cfg80211_ap_recovery()
2069 key_params.key = vif->gtk; in wil_cfg80211_ap_recovery()
2070 key_params.key_len = vif->gtk_len; in wil_cfg80211_ap_recovery()
2072 rc = wil_cfg80211_add_key(wiphy, ndev, -1, vif->gtk_index, in wil_cfg80211_ap_recovery()
2075 wil_err(wil, "vif %d recovery add key failed (%d)\n", in wil_cfg80211_ap_recovery()
2086 struct wil6210_vif *vif = ndev_to_vif(ndev); in wil_cfg80211_change_beacon() local
2091 wil_dbg_misc(wil, "change_beacon, mid=%d\n", vif->mid); in wil_cfg80211_change_beacon()
2099 memcpy(vif->ssid, wdev->u.ap.ssid, wdev->u.ap.ssid_len); in wil_cfg80211_change_beacon()
2100 vif->ssid_len = wdev->u.ap.ssid_len; in wil_cfg80211_change_beacon()
2103 if (vif->privacy != privacy) { in wil_cfg80211_change_beacon()
2105 vif->privacy, privacy); in wil_cfg80211_change_beacon()
2107 rc = _wil_cfg80211_start_ap(wiphy, ndev, vif->ssid, in wil_cfg80211_change_beacon()
2108 vif->ssid_len, privacy, in wil_cfg80211_change_beacon()
2110 vif->channel, in wil_cfg80211_change_beacon()
2111 vif->wmi_edmg_channel, bcon, in wil_cfg80211_change_beacon()
2112 vif->hidden_ssid, in wil_cfg80211_change_beacon()
2113 vif->pbss); in wil_cfg80211_change_beacon()
2115 rc = _wil_cfg80211_set_ies(vif, bcon); in wil_cfg80211_change_beacon()
2191 struct wil6210_vif *vif = ndev_to_vif(ndev); in wil_cfg80211_stop_ap() local
2194 wil_dbg_misc(wil, "stop_ap, mid=%d\n", vif->mid); in wil_cfg80211_stop_ap()
2206 wmi_pcp_stop(vif); in wil_cfg80211_stop_ap()
2207 clear_bit(wil_vif_ft_roam, vif->status); in wil_cfg80211_stop_ap()
2208 vif->ssid_len = 0; in wil_cfg80211_stop_ap()
2209 wil_memdup_ie(&vif->proberesp, &vif->proberesp_len, NULL, 0); in wil_cfg80211_stop_ap()
2210 wil_memdup_ie(&vif->proberesp_ies, &vif->proberesp_ies_len, NULL, 0); in wil_cfg80211_stop_ap()
2211 wil_memdup_ie(&vif->assocresp_ies, &vif->assocresp_ies_len, NULL, 0); in wil_cfg80211_stop_ap()
2212 memset(vif->gtk, 0, WMI_MAX_KEY_LEN); in wil_cfg80211_stop_ap()
2213 vif->gtk_len = 0; in wil_cfg80211_stop_ap()
2218 wil_bcast_fini(vif); in wil_cfg80211_stop_ap()
2230 struct wil6210_vif *vif = ndev_to_vif(dev); in wil_cfg80211_add_station() local
2234 mac, params->aid, vif->mid, in wil_cfg80211_add_station()
2247 return wmi_new_sta(vif, mac, params->aid); in wil_cfg80211_add_station()
2254 struct wil6210_vif *vif = ndev_to_vif(dev); in wil_cfg80211_del_station() local
2258 params->mac, params->reason_code, vif->mid); in wil_cfg80211_del_station()
2261 wil6210_disconnect(vif, params->mac, params->reason_code); in wil_cfg80211_del_station()
2272 struct wil6210_vif *vif = ndev_to_vif(dev); in wil_cfg80211_change_station() local
2280 vif->mid); in wil_cfg80211_change_station()
2290 cid = wil_find_cid(wil, vif->mid, mac); in wil_cfg80211_change_station()
2317 struct wil6210_vif *vif, in wil_probe_client_handle() argument
2320 struct net_device *ndev = vif_to_ndev(vif); in wil_probe_client_handle()
2331 static struct list_head *next_probe_client(struct wil6210_vif *vif) in next_probe_client() argument
2335 mutex_lock(&vif->probe_client_mutex); in next_probe_client()
2337 if (!list_empty(&vif->probe_client_pending)) { in next_probe_client()
2338 ret = vif->probe_client_pending.next; in next_probe_client()
2342 mutex_unlock(&vif->probe_client_mutex); in next_probe_client()
2349 struct wil6210_vif *vif = container_of(work, struct wil6210_vif, in wil_probe_client_worker() local
2351 struct wil6210_priv *wil = vif_to_wil(vif); in wil_probe_client_worker()
2355 while ((lh = next_probe_client(vif)) != NULL) { in wil_probe_client_worker()
2358 wil_probe_client_handle(wil, vif, req); in wil_probe_client_worker()
2363 void wil_probe_client_flush(struct wil6210_vif *vif) in wil_probe_client_flush() argument
2366 struct wil6210_priv *wil = vif_to_wil(vif); in wil_probe_client_flush()
2370 mutex_lock(&vif->probe_client_mutex); in wil_probe_client_flush()
2372 list_for_each_entry_safe(req, t, &vif->probe_client_pending, list) { in wil_probe_client_flush()
2377 mutex_unlock(&vif->probe_client_mutex); in wil_probe_client_flush()
2385 struct wil6210_vif *vif = ndev_to_vif(dev); in wil_cfg80211_probe_client() local
2387 int cid = wil_find_cid(wil, vif->mid, peer); in wil_cfg80211_probe_client()
2390 peer, cid, vif->mid); in wil_cfg80211_probe_client()
2402 mutex_lock(&vif->probe_client_mutex); in wil_cfg80211_probe_client()
2403 list_add_tail(&req->list, &vif->probe_client_pending); in wil_cfg80211_probe_client()
2404 mutex_unlock(&vif->probe_client_mutex); in wil_cfg80211_probe_client()
2407 queue_work(wil->wq_service, &vif->probe_client_worker); in wil_cfg80211_probe_client()
2416 struct wil6210_vif *vif = ndev_to_vif(dev); in wil_cfg80211_change_bss() local
2420 vif->mid, vif->ap_isolate, params->ap_isolate); in wil_cfg80211_change_bss()
2421 vif->ap_isolate = params->ap_isolate; in wil_cfg80211_change_bss()
2490 struct wil6210_vif *vif = ndev_to_vif(dev); in wil_cfg80211_sched_scan_start() local
2493 if (vif->mid != 0) in wil_cfg80211_sched_scan_start()
2529 rc = wmi_set_ie(vif, WMI_FRAME_PROBE_REQ, in wil_cfg80211_sched_scan_start()
2541 struct wil6210_vif *vif = ndev_to_vif(dev); in wil_cfg80211_sched_scan_stop() local
2544 if (vif->mid != 0) in wil_cfg80211_sched_scan_stop()
2561 struct wil6210_vif *vif = ndev_to_vif(dev); in wil_cfg80211_update_ft_ies() local
2566 wil_dbg_misc(wil, "update ft ies, mid=%d\n", vif->mid); in wil_cfg80211_update_ft_ies()
2575 rc = wmi_update_ft_ies(vif, ftie->ie_len, ftie->ie); in wil_cfg80211_update_ft_ies()
2579 if (!test_bit(wil_vif_ft_roam, vif->status)) in wil_cfg80211_update_ft_ies()
2580 /* vif is not roaming */ in wil_cfg80211_update_ft_ies()
2587 bss = vif->bss; in wil_cfg80211_update_ft_ies()
2596 rc = wmi_send(wil, WMI_FT_REASSOC_CMDID, vif->mid, in wil_cfg80211_update_ft_ies()
2800 * for main interface and each VIF. in wil_cfg80211_init()
2871 struct wil6210_vif *vif = wdev_to_vif(wil, wdev); in wil_rf_sector_get_cfg() local
2929 rc = wmi_call(wil, WMI_GET_RF_SECTOR_PARAMS_CMDID, vif->mid, in wil_rf_sector_get_cfg()
2992 struct wil6210_vif *vif = wdev_to_vif(wil, wdev); in wil_rf_sector_set_cfg() local
3090 rc = wmi_call(wil, WMI_SET_RF_SECTOR_PARAMS_CMDID, vif->mid, in wil_rf_sector_set_cfg()
3104 struct wil6210_vif *vif = wdev_to_vif(wil, wdev); in wil_rf_sector_get_selected() local
3140 cid = wil_find_cid(wil, vif->mid, mac_addr); in wil_rf_sector_get_selected()
3146 if (test_bit(wil_vif_fwconnected, vif->status)) { in wil_rf_sector_get_selected()
3155 rc = wmi_call(wil, WMI_GET_SELECTED_RF_SECTOR_INDEX_CMDID, vif->mid, in wil_rf_sector_get_selected()
3219 struct wil6210_vif *vif = wdev_to_vif(wil, wdev); in wil_rf_sector_set_selected() local
3259 cid = wil_find_cid(wil, vif->mid, mac_addr); in wil_rf_sector_set_selected()
3273 if (test_bit(wil_vif_fwconnected, vif->status)) { in wil_rf_sector_set_selected()
3281 rc = wil_rf_sector_wmi_set_selected(wil, vif->mid, sector_index, in wil_rf_sector_set_selected()
3286 wil, vif->mid, WMI_INVALID_RF_SECTOR_INDEX, in wil_rf_sector_set_selected()
3290 if (wil->sta[i].mid != vif->mid) in wil_rf_sector_set_selected()
3293 wil, vif->mid, in wil_rf_sector_set_selected()