Lines Matching full:vif

17 	if (link->sdata->vif.type == NL80211_IFTYPE_STATION)  in ieee80211_link_setup()
31 rcu_assign_pointer(sdata->vif.link_conf[link_id], link_conf); in ieee80211_link_init()
38 link_conf->vif = &sdata->vif; in ieee80211_link_init()
52 switch (sdata->vif.type) { in ieee80211_link_init()
72 if (link->sdata->vif.type == NL80211_IFTYPE_STATION) in ieee80211_link_stop()
147 sdata->vif.valid_links = valid_links; in ieee80211_set_vif_links_bitmaps()
148 sdata->vif.dormant_links = dormant_links; in ieee80211_set_vif_links_bitmaps()
155 sdata->vif.active_links = 0; in ieee80211_set_vif_links_bitmaps()
156 sdata->vif.dormant_links = 0; in ieee80211_set_vif_links_bitmaps()
160 switch (sdata->vif.type) { in ieee80211_set_vif_links_bitmaps()
163 sdata->vif.active_links = valid_links; in ieee80211_set_vif_links_bitmaps()
169 if (sdata->vif.active_links) in ieee80211_set_vif_links_bitmaps()
171 sdata->vif.active_links = valid_links & ~dormant_links; in ieee80211_set_vif_links_bitmaps()
172 WARN_ON(hweight16(sdata->vif.active_links) > 1); in ieee80211_set_vif_links_bitmaps()
183 u16 old_links = sdata->vif.valid_links; in ieee80211_vif_update_links()
184 u16 old_active = sdata->vif.active_links; in ieee80211_vif_update_links()
198 if (old_links == new_links && dormant_links == sdata->vif.dormant_links) in ieee80211_vif_update_links()
216 BUILD_BUG_ON(sizeof(old) != sizeof(sdata->vif.link_conf)); in ieee80211_vif_update_links()
217 memcpy(old, sdata->vif.link_conf, sizeof(old)); in ieee80211_vif_update_links()
235 RCU_INIT_POINTER(sdata->vif.link_conf[link_id], NULL); in ieee80211_vif_update_links()
250 &sdata->vif.bss_conf); in ieee80211_vif_update_links()
262 new_links & sdata->vif.active_links, in ieee80211_vif_update_links()
269 memcpy(sdata->vif.link_conf, old, sizeof(old)); in ieee80211_vif_update_links()
289 &sdata->vif.bss_conf); in ieee80211_vif_update_links()
328 u16 old_active = sdata->vif.active_links; in _ieee80211_set_active_links()
338 if (sdata->vif.type != NL80211_IFTYPE_STATION) in _ieee80211_set_active_links()
341 if (active_links & ~ieee80211_vif_usable_links(&sdata->vif)) in _ieee80211_set_active_links()
349 link_confs[i] = sdata_dereference(sdata->vif.link_conf[i], in _ieee80211_set_active_links()
353 sdata->vif.active_links |= active_links; in _ieee80211_set_active_links()
356 sdata->vif.active_links, in _ieee80211_set_active_links()
359 sdata->vif.active_links = old_active; in _ieee80211_set_active_links()
406 * would set it wrong since the vif's active links are in _ieee80211_set_active_links()
438 old_active = sdata->vif.active_links; in _ieee80211_set_active_links()
439 sdata->vif.active_links = active_links; in _ieee80211_set_active_links()
450 int __ieee80211_set_active_links(struct ieee80211_vif *vif, u16 active_links) in __ieee80211_set_active_links() argument
452 struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif); in __ieee80211_set_active_links()
461 old_active = sdata->vif.active_links; in __ieee80211_set_active_links()
483 int ieee80211_set_active_links(struct ieee80211_vif *vif, u16 active_links) in ieee80211_set_active_links() argument
485 struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif); in ieee80211_set_active_links()
489 ret = __ieee80211_set_active_links(vif, active_links); in ieee80211_set_active_links()
496 void ieee80211_set_active_links_async(struct ieee80211_vif *vif, in ieee80211_set_active_links_async() argument
499 struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif); in ieee80211_set_active_links_async()
504 if (sdata->vif.type != NL80211_IFTYPE_STATION) in ieee80211_set_active_links_async()
507 if (active_links & ~ieee80211_vif_usable_links(&sdata->vif)) in ieee80211_set_active_links_async()
511 if (sdata->vif.active_links == active_links) in ieee80211_set_active_links_async()