Lines Matching defs:vif

234 				      struct ieee80211_vif *vif,
258 if (!vif->cfg.assoc)
264 if (!rsi_send_bgscan_probe_req(common, vif)) {
275 struct ieee80211_vif *vif)
454 * @vif: Pointer to the ieee80211_vif structure.
459 struct ieee80211_vif *vif)
463 struct vif_priv *vif_info = (struct vif_priv *)vif->drv_priv;
468 vif->driver_flags |= IEEE80211_VIF_SUPPORTS_UAPSD;
471 intf_mode = rsi_map_intf_mode(vif->type);
475 vif->type);
479 if ((vif->type == NL80211_IFTYPE_P2P_DEVICE) ||
480 (vif->type == NL80211_IFTYPE_P2P_CLIENT) ||
481 (vif->type == NL80211_IFTYPE_P2P_GO))
487 !memcmp(vif->addr, adapter->vifs[i]->addr, ETH_ALEN)) {
498 adapter->vifs[vap_idx] = vif;
502 if (rsi_set_vap_capabilities(common, intf_mode, vif->addr,
509 if ((vif->type == NL80211_IFTYPE_AP) ||
510 (vif->type == NL80211_IFTYPE_P2P_GO)) {
525 * @vif: Pointer to the ieee80211_vif structure.
530 struct ieee80211_vif *vif)
546 opmode = rsi_map_intf_mode(vif->type);
555 if (vif == adapter->vifs[i]) {
556 rsi_set_vap_capabilities(common, opmode, vif->addr,
580 struct ieee80211_vif *vif;
590 vif = adapter->vifs[i];
591 if (!vif)
593 if (vif->type == NL80211_IFTYPE_STATION) {
594 if (vif->cfg.assoc) {
602 (rsi_get_connected_channel(vif) != channel)) {
615 (rsi_get_connected_channel(vif) == channel)) {
684 struct ieee80211_vif *vif, *sta_vif = NULL;
689 vif = adapter->vifs[i];
690 if (!vif)
693 if ((vif->type == NL80211_IFTYPE_AP) ||
694 (vif->type == NL80211_IFTYPE_P2P_GO)) {
698 if ((vif->type == NL80211_IFTYPE_STATION ||
699 vif->type == NL80211_IFTYPE_P2P_CLIENT) &&
700 (!sta_vif || vif->cfg.assoc))
701 sta_vif = vif;
730 * @vif: Pointer to the ieee80211_vif structure.
734 u16 rsi_get_connected_channel(struct ieee80211_vif *vif)
739 if (!vif)
742 bss = &vif->bss_conf;
752 struct ieee80211_vif *vif)
759 if (!vif)
762 channel = vif->bss_conf.chanreq.oper.chan;
777 * @vif: Pointer to the ieee80211_vif structure.
784 struct ieee80211_vif *vif,
790 struct ieee80211_bss_conf *bss = &vif->bss_conf;
797 __func__, vif->cfg.assoc);
798 if (vif->cfg.assoc) {
807 vif->cfg.assoc,
810 vif->cfg.aid,
812 bss_conf->assoc_capability, vif);
817 if (vif->cfg.assoc) {
820 rsi_conf_uapsd(adapter, vif);
841 if (vif->type == NL80211_IFTYPE_AP) {
842 struct vif_priv *vif_info = (struct vif_priv *)vif->drv_priv;
845 vif->addr, vif_info->vap_id,
854 ((vif->type == NL80211_IFTYPE_AP) ||
855 (vif->type == NL80211_IFTYPE_P2P_GO))) {
891 * @vif: Pointer to the ieee80211_vif structure.
899 struct ieee80211_vif *vif,
952 * @vif: Pointer to the ieee80211_vif structure.
959 struct ieee80211_vif *vif,
977 if ((vif->type == NL80211_IFTYPE_AP) ||
978 (vif->type == NL80211_IFTYPE_P2P_GO)) {
995 vif);
1008 vif);
1012 if (vif->type == NL80211_IFTYPE_STATION &&
1026 * @vif: Pointer to the ieee80211_vif structure.
1034 struct ieee80211_vif *vif,
1046 status = rsi_hal_key_config(hw, vif, key, sta);
1066 status = rsi_hal_key_config(hw, vif, key, sta);
1083 * @vif: Pointer to the ieee80211_vif structure.
1089 struct ieee80211_vif *vif,
1106 if (vif == adapter->vifs[ii])
1118 if ((vif->type == NL80211_IFTYPE_AP) ||
1119 (vif->type == NL80211_IFTYPE_P2P_GO)) {
1153 if ((vif->type == NL80211_IFTYPE_STATION) ||
1154 (vif->type == NL80211_IFTYPE_P2P_CLIENT))
1156 else if ((vif->type == NL80211_IFTYPE_AP) ||
1157 (vif->type == NL80211_IFTYPE_P2P_GO))
1172 ieee80211_stop_tx_ba_cb_irqsafe(vif, sta->addr, tid);
1176 if ((vif->type == NL80211_IFTYPE_STATION) ||
1177 (vif->type == NL80211_IFTYPE_P2P_CLIENT))
1179 else if ((vif->type == NL80211_IFTYPE_AP) ||
1180 (vif->type == NL80211_IFTYPE_P2P_GO))
1223 * @vif: Pointer to the ieee80211_vif structure.
1229 struct ieee80211_vif *vif,
1268 * @vif: Pointer to the ieee80211_vif structure.
1273 struct ieee80211_vif *vif)
1290 ieee80211_cqm_rssi_notify(vif, event, rssi, GFP_KERNEL);
1311 struct ieee80211_vif *vif;
1350 vif = adapter->vifs[i];
1351 if (!vif)
1353 if (vif->type == NL80211_IFTYPE_STATION) {
1354 bss = &vif->bss_conf;
1361 if (vif->cfg.assoc && !(memcmp(bss->bssid, hdr->addr2, ETH_ALEN))) {
1363 rsi_perform_cqm(common, hdr->addr2, rxs->signal, vif);
1398 * @vif: Pointer to the ieee80211_vif structure.
1404 struct ieee80211_vif *vif,
1417 if ((vif->type == NL80211_IFTYPE_AP) ||
1418 (vif->type == NL80211_IFTYPE_P2P_GO)) {
1469 sta, sta_idx, 0, vif);
1483 vif);
1490 if ((vif->type == NL80211_IFTYPE_STATION) ||
1491 (vif->type == NL80211_IFTYPE_P2P_CLIENT)) {
1514 * @vif: Pointer to the ieee80211_vif structure.
1520 struct ieee80211_vif *vif,
1525 struct ieee80211_bss_conf *bss = &vif->bss_conf;
1532 if ((vif->type == NL80211_IFTYPE_AP) ||
1533 (vif->type == NL80211_IFTYPE_P2P_GO)) {
1547 0, vif);
1561 if ((vif->type == NL80211_IFTYPE_STATION) ||
1562 (vif->type == NL80211_IFTYPE_P2P_CLIENT)) {
1724 struct ieee80211_vif *vif;
1728 vif = adapter->vifs[cnt];
1729 if (!vif)
1732 if ((vif->type == NL80211_IFTYPE_AP) ||
1733 (vif->type == NL80211_IFTYPE_P2P_GO)) {
1734 rsi_switch_channel(adapter, vif);
1737 if (((vif->type == NL80211_IFTYPE_STATION) ||
1738 (vif->type == NL80211_IFTYPE_P2P_CLIENT)) &&
1739 vif->cfg.assoc) {
1740 rsi_switch_channel(adapter, vif);
1762 static int rsi_mac80211_roc(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
1797 common->roc_vif = vif;
1809 struct ieee80211_vif *vif)
1864 struct ieee80211_vif *vif = adapter->vifs[0];
1870 if (!vif)
1884 if (!vif->cfg.assoc) {