Lines Matching refs:avf
78 struct ath5k_vif *avf = (void *)vif->drv_priv; in ath5k_add_interface() local
106 avf->opmode = vif->type; in ath5k_add_interface()
114 ATH5K_DBG(ah, ATH5K_DEBUG_MODE, "add interface mode %d\n", avf->opmode); in ath5k_add_interface()
117 if ((avf->opmode == NL80211_IFTYPE_AP) || in ath5k_add_interface()
118 (avf->opmode == NL80211_IFTYPE_ADHOC) || in ath5k_add_interface()
119 (avf->opmode == NL80211_IFTYPE_MESH_POINT)) { in ath5k_add_interface()
123 avf->bbuf = list_first_entry(&ah->bcbuf, struct ath5k_buf, in ath5k_add_interface()
125 list_del(&avf->bbuf->list); in ath5k_add_interface()
127 avf->bslot = 0; in ath5k_add_interface()
130 avf->bslot = slot; in ath5k_add_interface()
134 BUG_ON(ah->bslot[avf->bslot] != NULL); in ath5k_add_interface()
135 ah->bslot[avf->bslot] = vif; in ath5k_add_interface()
136 if (avf->opmode == NL80211_IFTYPE_AP) in ath5k_add_interface()
138 else if (avf->opmode == NL80211_IFTYPE_ADHOC) in ath5k_add_interface()
140 else if (avf->opmode == NL80211_IFTYPE_MESH_POINT) in ath5k_add_interface()
162 struct ath5k_vif *avf = (void *)vif->drv_priv; in ath5k_remove_interface() local
168 if (avf->bbuf) { in ath5k_remove_interface()
169 ath5k_txbuf_free_skb(ah, avf->bbuf); in ath5k_remove_interface()
170 list_add_tail(&avf->bbuf->list, &ah->bcbuf); in ath5k_remove_interface()
177 avf->bbuf = NULL; in ath5k_remove_interface()
179 if (avf->opmode == NL80211_IFTYPE_AP) in ath5k_remove_interface()
181 else if (avf->opmode == NL80211_IFTYPE_ADHOC) in ath5k_remove_interface()
183 else if (avf->opmode == NL80211_IFTYPE_MESH_POINT) in ath5k_remove_interface()
255 struct ath5k_vif *avf = (void *)vif->drv_priv; in ath5k_bss_info_changed() local
282 avf->assoc = bss_conf->assoc; in ath5k_bss_info_changed()