Lines Matching refs:vif
234 struct ieee80211_vif *vif, in rsi_mac80211_hw_scan_start() argument
258 if (!vif->cfg.assoc) in rsi_mac80211_hw_scan_start()
264 if (!rsi_send_bgscan_probe_req(common, vif)) { in rsi_mac80211_hw_scan_start()
275 struct ieee80211_vif *vif) in rsi_mac80211_cancel_hw_scan() argument
460 struct ieee80211_vif *vif) in rsi_mac80211_add_interface() argument
464 struct vif_priv *vif_info = (struct vif_priv *)vif->drv_priv; in rsi_mac80211_add_interface()
469 vif->driver_flags |= IEEE80211_VIF_SUPPORTS_UAPSD; in rsi_mac80211_add_interface()
472 intf_mode = rsi_map_intf_mode(vif->type); in rsi_mac80211_add_interface()
476 vif->type); in rsi_mac80211_add_interface()
480 if ((vif->type == NL80211_IFTYPE_P2P_DEVICE) || in rsi_mac80211_add_interface()
481 (vif->type == NL80211_IFTYPE_P2P_CLIENT) || in rsi_mac80211_add_interface()
482 (vif->type == NL80211_IFTYPE_P2P_GO)) in rsi_mac80211_add_interface()
488 !memcmp(vif->addr, adapter->vifs[i]->addr, ETH_ALEN)) { in rsi_mac80211_add_interface()
499 adapter->vifs[vap_idx] = vif; in rsi_mac80211_add_interface()
503 if (rsi_set_vap_capabilities(common, intf_mode, vif->addr, in rsi_mac80211_add_interface()
510 if ((vif->type == NL80211_IFTYPE_AP) || in rsi_mac80211_add_interface()
511 (vif->type == NL80211_IFTYPE_P2P_GO)) { in rsi_mac80211_add_interface()
531 struct ieee80211_vif *vif) in rsi_mac80211_remove_interface() argument
547 opmode = rsi_map_intf_mode(vif->type); in rsi_mac80211_remove_interface()
556 if (vif == adapter->vifs[i]) { in rsi_mac80211_remove_interface()
557 rsi_set_vap_capabilities(common, opmode, vif->addr, in rsi_mac80211_remove_interface()
581 struct ieee80211_vif *vif; in rsi_channel_change() local
591 vif = adapter->vifs[i]; in rsi_channel_change()
592 if (!vif) in rsi_channel_change()
594 if (vif->type == NL80211_IFTYPE_STATION) { in rsi_channel_change()
595 if (vif->cfg.assoc) { in rsi_channel_change()
603 (rsi_get_connected_channel(vif) != channel)) { in rsi_channel_change()
616 (rsi_get_connected_channel(vif) == channel)) { in rsi_channel_change()
687 struct ieee80211_vif *vif, *sta_vif = NULL; in rsi_mac80211_config() local
692 vif = adapter->vifs[i]; in rsi_mac80211_config()
693 if (!vif) in rsi_mac80211_config()
696 if ((vif->type == NL80211_IFTYPE_AP) || in rsi_mac80211_config()
697 (vif->type == NL80211_IFTYPE_P2P_GO)) { in rsi_mac80211_config()
701 if ((vif->type == NL80211_IFTYPE_STATION || in rsi_mac80211_config()
702 vif->type == NL80211_IFTYPE_P2P_CLIENT) && in rsi_mac80211_config()
703 (!sta_vif || vif->cfg.assoc)) in rsi_mac80211_config()
704 sta_vif = vif; in rsi_mac80211_config()
737 u16 rsi_get_connected_channel(struct ieee80211_vif *vif) in rsi_get_connected_channel() argument
742 if (!vif) in rsi_get_connected_channel()
745 bss = &vif->bss_conf; in rsi_get_connected_channel()
755 struct ieee80211_vif *vif) in rsi_switch_channel() argument
762 if (!vif) in rsi_switch_channel()
765 channel = vif->bss_conf.chanreq.oper.chan; in rsi_switch_channel()
787 struct ieee80211_vif *vif, in rsi_mac80211_bss_info_changed() argument
793 struct ieee80211_bss_conf *bss = &vif->bss_conf; in rsi_mac80211_bss_info_changed()
800 __func__, vif->cfg.assoc); in rsi_mac80211_bss_info_changed()
801 if (vif->cfg.assoc) { in rsi_mac80211_bss_info_changed()
810 vif->cfg.assoc, in rsi_mac80211_bss_info_changed()
813 vif->cfg.aid, in rsi_mac80211_bss_info_changed()
815 bss_conf->assoc_capability, vif); in rsi_mac80211_bss_info_changed()
820 if (vif->cfg.assoc) { in rsi_mac80211_bss_info_changed()
823 rsi_conf_uapsd(adapter, vif); in rsi_mac80211_bss_info_changed()
844 if (vif->type == NL80211_IFTYPE_AP) { in rsi_mac80211_bss_info_changed()
845 struct vif_priv *vif_info = (struct vif_priv *)vif->drv_priv; in rsi_mac80211_bss_info_changed()
848 vif->addr, vif_info->vap_id, in rsi_mac80211_bss_info_changed()
857 ((vif->type == NL80211_IFTYPE_AP) || in rsi_mac80211_bss_info_changed()
858 (vif->type == NL80211_IFTYPE_P2P_GO))) { in rsi_mac80211_bss_info_changed()
902 struct ieee80211_vif *vif, in rsi_mac80211_conf_tx() argument
962 struct ieee80211_vif *vif, in rsi_hal_key_config() argument
980 if ((vif->type == NL80211_IFTYPE_AP) || in rsi_hal_key_config()
981 (vif->type == NL80211_IFTYPE_P2P_GO)) { in rsi_hal_key_config()
998 vif); in rsi_hal_key_config()
1011 vif); in rsi_hal_key_config()
1015 if (vif->type == NL80211_IFTYPE_STATION && in rsi_hal_key_config()
1037 struct ieee80211_vif *vif, in rsi_mac80211_set_key() argument
1049 status = rsi_hal_key_config(hw, vif, key, sta); in rsi_mac80211_set_key()
1069 status = rsi_hal_key_config(hw, vif, key, sta); in rsi_mac80211_set_key()
1092 struct ieee80211_vif *vif, in rsi_mac80211_ampdu_action() argument
1109 if (vif == adapter->vifs[ii]) in rsi_mac80211_ampdu_action()
1121 if ((vif->type == NL80211_IFTYPE_AP) || in rsi_mac80211_ampdu_action()
1122 (vif->type == NL80211_IFTYPE_P2P_GO)) { in rsi_mac80211_ampdu_action()
1156 if ((vif->type == NL80211_IFTYPE_STATION) || in rsi_mac80211_ampdu_action()
1157 (vif->type == NL80211_IFTYPE_P2P_CLIENT)) in rsi_mac80211_ampdu_action()
1159 else if ((vif->type == NL80211_IFTYPE_AP) || in rsi_mac80211_ampdu_action()
1160 (vif->type == NL80211_IFTYPE_P2P_GO)) in rsi_mac80211_ampdu_action()
1175 ieee80211_stop_tx_ba_cb_irqsafe(vif, sta->addr, tid); in rsi_mac80211_ampdu_action()
1179 if ((vif->type == NL80211_IFTYPE_STATION) || in rsi_mac80211_ampdu_action()
1180 (vif->type == NL80211_IFTYPE_P2P_CLIENT)) in rsi_mac80211_ampdu_action()
1182 else if ((vif->type == NL80211_IFTYPE_AP) || in rsi_mac80211_ampdu_action()
1183 (vif->type == NL80211_IFTYPE_P2P_GO)) in rsi_mac80211_ampdu_action()
1233 struct ieee80211_vif *vif, in rsi_mac80211_set_rate_mask() argument
1277 struct ieee80211_vif *vif) in rsi_perform_cqm() argument
1294 ieee80211_cqm_rssi_notify(vif, event, rssi, GFP_KERNEL); in rsi_perform_cqm()
1315 struct ieee80211_vif *vif; in rsi_fill_rx_status() local
1354 vif = adapter->vifs[i]; in rsi_fill_rx_status()
1355 if (!vif) in rsi_fill_rx_status()
1357 if (vif->type == NL80211_IFTYPE_STATION) { in rsi_fill_rx_status()
1358 bss = &vif->bss_conf; in rsi_fill_rx_status()
1365 if (vif->cfg.assoc && !(memcmp(bss->bssid, hdr->addr2, ETH_ALEN))) { in rsi_fill_rx_status()
1367 rsi_perform_cqm(common, hdr->addr2, rxs->signal, vif); in rsi_fill_rx_status()
1408 struct ieee80211_vif *vif, in rsi_mac80211_sta_add() argument
1421 if ((vif->type == NL80211_IFTYPE_AP) || in rsi_mac80211_sta_add()
1422 (vif->type == NL80211_IFTYPE_P2P_GO)) { in rsi_mac80211_sta_add()
1473 sta, sta_idx, 0, vif); in rsi_mac80211_sta_add()
1487 vif); in rsi_mac80211_sta_add()
1494 if ((vif->type == NL80211_IFTYPE_STATION) || in rsi_mac80211_sta_add()
1495 (vif->type == NL80211_IFTYPE_P2P_CLIENT)) { in rsi_mac80211_sta_add()
1524 struct ieee80211_vif *vif, in rsi_mac80211_sta_remove() argument
1529 struct ieee80211_bss_conf *bss = &vif->bss_conf; in rsi_mac80211_sta_remove()
1536 if ((vif->type == NL80211_IFTYPE_AP) || in rsi_mac80211_sta_remove()
1537 (vif->type == NL80211_IFTYPE_P2P_GO)) { in rsi_mac80211_sta_remove()
1551 0, vif); in rsi_mac80211_sta_remove()
1565 if ((vif->type == NL80211_IFTYPE_STATION) || in rsi_mac80211_sta_remove()
1566 (vif->type == NL80211_IFTYPE_P2P_CLIENT)) { in rsi_mac80211_sta_remove()
1732 struct ieee80211_vif *vif; in rsi_resume_conn_channel() local
1736 vif = adapter->vifs[cnt]; in rsi_resume_conn_channel()
1737 if (!vif) in rsi_resume_conn_channel()
1740 if ((vif->type == NL80211_IFTYPE_AP) || in rsi_resume_conn_channel()
1741 (vif->type == NL80211_IFTYPE_P2P_GO)) { in rsi_resume_conn_channel()
1742 rsi_switch_channel(adapter, vif); in rsi_resume_conn_channel()
1745 if (((vif->type == NL80211_IFTYPE_STATION) || in rsi_resume_conn_channel()
1746 (vif->type == NL80211_IFTYPE_P2P_CLIENT)) && in rsi_resume_conn_channel()
1747 vif->cfg.assoc) { in rsi_resume_conn_channel()
1748 rsi_switch_channel(adapter, vif); in rsi_resume_conn_channel()
1770 static int rsi_mac80211_roc(struct ieee80211_hw *hw, struct ieee80211_vif *vif, in rsi_mac80211_roc() argument
1805 common->roc_vif = vif; in rsi_mac80211_roc()
1817 struct ieee80211_vif *vif) in rsi_mac80211_cancel_roc() argument
1872 struct ieee80211_vif *vif = adapter->vifs[0]; in rsi_config_wowlan() local
1878 if (!vif) in rsi_config_wowlan()
1892 if (!vif->cfg.assoc) { in rsi_config_wowlan()