Home
last modified time | relevance | path

Searched refs:wlvif (Results 1 – 16 of 16) sorted by relevance

/drivers/net/wireless/wl12xx/
Dinit.c141 struct wl12xx_vif *wlvif) in wl1271_ap_init_deauth_template() argument
156 rate = wl1271_tx_min_rate_get(wl, wlvif->basic_rate_set); in wl1271_ap_init_deauth_template()
157 ret = wl1271_cmd_template_set(wl, wlvif->role_id, in wl1271_ap_init_deauth_template()
169 struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif); in wl1271_ap_init_null_template() local
189 rate = wl1271_tx_min_rate_get(wl, wlvif->basic_rate_set); in wl1271_ap_init_null_template()
190 ret = wl1271_cmd_template_set(wl, wlvif->role_id, in wl1271_ap_init_null_template()
202 struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif); in wl1271_ap_init_qos_null_template() local
222 rate = wl1271_tx_min_rate_get(wl, wlvif->basic_rate_set); in wl1271_ap_init_qos_null_template()
223 ret = wl1271_cmd_template_set(wl, wlvif->role_id, in wl1271_ap_init_qos_null_template()
244 struct wl12xx_vif *wlvif) in wl12xx_init_phy_vif_config() argument
[all …]
Dcmd.c460 int wl12xx_allocate_link(struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 *hlid) in wl12xx_allocate_link() argument
470 __set_bit(link, wlvif->links_map); in wl12xx_allocate_link()
476 void wl12xx_free_link(struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 *hlid) in wl12xx_free_link() argument
486 __clear_bit(*hlid, wlvif->links_map); in wl12xx_free_link()
499 struct wl12xx_vif *wlvif) in wl12xx_get_new_session_id() argument
501 if (wlvif->session_counter >= SESSION_COUNTER_MAX) in wl12xx_get_new_session_id()
502 wlvif->session_counter = 0; in wl12xx_get_new_session_id()
504 wlvif->session_counter++; in wl12xx_get_new_session_id()
506 return wlvif->session_counter; in wl12xx_get_new_session_id()
510 struct wl12xx_vif *wlvif) in wl12xx_cmd_role_start_dev() argument
[all …]
Dmain.c394 static void wl1271_free_ap_keys(struct wl1271 *wl, struct wl12xx_vif *wlvif);
397 struct wl12xx_vif *wlvif) in wl12xx_set_authorized() argument
401 if (WARN_ON(wlvif->bss_type != BSS_TYPE_STA_BSS)) in wl12xx_set_authorized()
404 if (!test_bit(WLVIF_FLAG_STA_ASSOCIATED, &wlvif->flags)) in wl12xx_set_authorized()
407 if (test_and_set_bit(WLVIF_FLAG_STA_STATE_SENT, &wlvif->flags)) in wl12xx_set_authorized()
410 ret = wl12xx_cmd_set_peer_state(wl, wlvif->sta.hlid); in wl12xx_set_authorized()
414 wl12xx_croc(wl, wlvif->role_id); in wl12xx_set_authorized()
442 static int wl1271_set_rx_streaming(struct wl1271 *wl, struct wl12xx_vif *wlvif, in wl1271_set_rx_streaming() argument
448 ret = wl1271_acx_ps_rx_streaming(wl, wlvif, enable); in wl1271_set_rx_streaming()
453 set_bit(WLVIF_FLAG_RX_STREAMING_STARTED, &wlvif->flags); in wl1271_set_rx_streaming()
[all …]
Dtx.c37 struct wl12xx_vif *wlvif, u8 id) in wl1271_set_default_wep_key() argument
40 bool is_ap = (wlvif->bss_type == BSS_TYPE_AP_BSS); in wl1271_set_default_wep_key()
44 wlvif->ap.bcast_hlid); in wl1271_set_default_wep_key()
46 ret = wl12xx_cmd_set_default_wep_key(wl, id, wlvif->sta.hlid); in wl1271_set_default_wep_key()
97 struct wl12xx_vif *wlvif, in wl1271_tx_regulate_link() argument
103 if (WARN_ON(!test_bit(hlid, wlvif->links_map))) in wl1271_tx_regulate_link()
117 wl12xx_ps_link_start(wl, wlvif, hlid, true); in wl1271_tx_regulate_link()
125 u8 wl12xx_tx_get_hlid_ap(struct wl1271 *wl, struct wl12xx_vif *wlvif, in wl12xx_tx_get_hlid_ap() argument
139 if (!test_bit(WLVIF_FLAG_AP_STARTED, &wlvif->flags)) in wl12xx_tx_get_hlid_ap()
144 return wlvif->ap.global_hlid; in wl12xx_tx_get_hlid_ap()
[all …]
Devent.c34 struct wl12xx_vif *wlvif, in wl1271_event_rssi_trigger() argument
37 struct ieee80211_vif *vif = wl12xx_wlvif_to_vif(wlvif); in wl1271_event_rssi_trigger()
43 if (metric <= wlvif->rssi_thold) in wl1271_event_rssi_trigger()
48 if (event != wlvif->last_rssi_event) in wl1271_event_rssi_trigger()
50 wlvif->last_rssi_event = event; in wl1271_event_rssi_trigger()
53 static void wl1271_stop_ba_event(struct wl1271 *wl, struct wl12xx_vif *wlvif) in wl1271_stop_ba_event() argument
55 struct ieee80211_vif *vif = wl12xx_wlvif_to_vif(wlvif); in wl1271_stop_ba_event()
57 if (wlvif->bss_type != BSS_TYPE_AP_BSS) { in wl1271_stop_ba_event()
58 if (!wlvif->sta.ba_rx_bitmap) in wl1271_stop_ba_event()
60 ieee80211_stop_rx_ba_session(vif, wlvif->sta.ba_rx_bitmap, in wl1271_stop_ba_event()
[all …]
Dps.c36 struct wl12xx_vif *wlvif; in wl1271_elp_work() local
55 wl12xx_for_each_wlvif(wl, wlvif) { in wl1271_elp_work()
56 if (wlvif->bss_type == BSS_TYPE_AP_BSS) in wl1271_elp_work()
59 if (!test_bit(WLVIF_FLAG_IN_PS, &wlvif->flags) && in wl1271_elp_work()
60 test_bit(WLVIF_FLAG_IN_USE, &wlvif->flags)) in wl1271_elp_work()
75 struct wl12xx_vif *wlvif; in wl1271_ps_elp_sleep() local
81 wl12xx_for_each_wlvif(wl, wlvif) { in wl1271_ps_elp_sleep()
82 if (wlvif->bss_type == BSS_TYPE_AP_BSS) in wl1271_ps_elp_sleep()
85 if (!test_bit(WLVIF_FLAG_IN_PS, &wlvif->flags) && in wl1271_ps_elp_sleep()
86 test_bit(WLVIF_FLAG_IN_USE, &wlvif->flags)) in wl1271_ps_elp_sleep()
[all …]
Dacx.c37 int wl1271_acx_wake_up_conditions(struct wl1271 *wl, struct wl12xx_vif *wlvif, in wl1271_acx_wake_up_conditions() argument
52 wake_up->role_id = wlvif->role_id; in wl1271_acx_wake_up_conditions()
90 int wl1271_acx_tx_power(struct wl1271 *wl, struct wl12xx_vif *wlvif, in wl1271_acx_tx_power() argument
107 acx->role_id = wlvif->role_id; in wl1271_acx_tx_power()
121 int wl1271_acx_feature_cfg(struct wl1271 *wl, struct wl12xx_vif *wlvif) in wl1271_acx_feature_cfg() argument
135 feature->role_id = wlvif->role_id; in wl1271_acx_feature_cfg()
191 int wl1271_acx_slot(struct wl1271 *wl, struct wl12xx_vif *wlvif, in wl1271_acx_slot() argument
205 slot->role_id = wlvif->role_id; in wl1271_acx_slot()
220 int wl1271_acx_group_address_tbl(struct wl1271 *wl, struct wl12xx_vif *wlvif, in wl1271_acx_group_address_tbl() argument
235 acx->role_id = wlvif->role_id; in wl1271_acx_group_address_tbl()
[all …]
Dcmd.h42 int wl12xx_cmd_role_start_sta(struct wl1271 *wl, struct wl12xx_vif *wlvif);
43 int wl12xx_cmd_role_stop_sta(struct wl1271 *wl, struct wl12xx_vif *wlvif);
44 int wl12xx_cmd_role_start_ap(struct wl1271 *wl, struct wl12xx_vif *wlvif);
45 int wl12xx_cmd_role_stop_ap(struct wl1271 *wl, struct wl12xx_vif *wlvif);
46 int wl12xx_cmd_role_start_ibss(struct wl1271 *wl, struct wl12xx_vif *wlvif);
47 int wl12xx_start_dev(struct wl1271 *wl, struct wl12xx_vif *wlvif);
48 int wl12xx_stop_dev(struct wl1271 *wl, struct wl12xx_vif *wlvif);
53 int wl1271_cmd_ps_mode(struct wl1271 *wl, struct wl12xx_vif *wlvif,
60 int wl12xx_cmd_build_null_data(struct wl1271 *wl, struct wl12xx_vif *wlvif);
61 int wl1271_cmd_build_ps_poll(struct wl1271 *wl, struct wl12xx_vif *wlvif,
[all …]
Dacx.h1229 struct wl12xx_vif *wlvif,
1232 int wl1271_acx_tx_power(struct wl1271 *wl, struct wl12xx_vif *wlvif,
1234 int wl1271_acx_feature_cfg(struct wl1271 *wl, struct wl12xx_vif *wlvif);
1238 int wl1271_acx_slot(struct wl1271 *wl, struct wl12xx_vif *wlvif,
1240 int wl1271_acx_group_address_tbl(struct wl1271 *wl, struct wl12xx_vif *wlvif,
1243 struct wl12xx_vif *wlvif);
1244 int wl1271_acx_rts_threshold(struct wl1271 *wl, struct wl12xx_vif *wlvif,
1247 int wl1271_acx_beacon_filter_opt(struct wl1271 *wl, struct wl12xx_vif *wlvif,
1250 struct wl12xx_vif *wlvif);
1251 int wl1271_acx_conn_monit_params(struct wl1271 *wl, struct wl12xx_vif *wlvif,
[all …]
Dwl12xx.h634 struct ieee80211_vif *wl12xx_wlvif_to_vif(struct wl12xx_vif *wlvif) in wl12xx_wlvif_to_vif() argument
636 return container_of((void *)wlvif, struct ieee80211_vif, drv_priv); in wl12xx_wlvif_to_vif()
639 #define wl12xx_for_each_wlvif(wl, wlvif) \ argument
640 list_for_each_entry(wlvif, &wl->wlvif_list, list)
642 #define wl12xx_for_each_wlvif_continue(wl, wlvif) \ argument
643 list_for_each_entry_continue(wlvif, &wl->wlvif_list, list)
645 #define wl12xx_for_each_wlvif_bss_type(wl, wlvif, _bss_type) \ argument
646 wl12xx_for_each_wlvif(wl, wlvif) \
647 if (wlvif->bss_type == _bss_type)
649 #define wl12xx_for_each_wlvif_sta(wl, wlvif) \ argument
[all …]
Dscan.c39 struct wl12xx_vif *wlvif; in wl1271_scan_complete_work() local
56 wlvif = wl12xx_vif_to_data(vif); in wl1271_scan_complete_work()
73 if (test_bit(WLVIF_FLAG_STA_ASSOCIATED, &wlvif->flags)) { in wl1271_scan_complete_work()
75 wl1271_cmd_build_ap_probe_req(wl, wlvif, wlvif->probereq); in wl1271_scan_complete_work()
164 struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif); in wl1271_scan_send() local
187 if (wlvif->bss_type == BSS_TYPE_AP_BSS || in wl1271_scan_send()
188 test_bit(WLVIF_FLAG_STA_ASSOCIATED, &wlvif->flags)) in wl1271_scan_send()
189 cmd->params.role_id = wlvif->role_id; in wl1271_scan_send()
191 cmd->params.role_id = wlvif->dev_role_id; in wl1271_scan_send()
225 ret = wl12xx_cmd_build_probe_req(wl, wlvif, in wl1271_scan_send()
[all …]
Ddebugfs.c324 struct wl12xx_vif *wlvif; in dynamic_ps_timeout_write() local
354 wl12xx_for_each_wlvif_sta(wl, wlvif) { in dynamic_ps_timeout_write()
355 if (test_bit(WLVIF_FLAG_IN_PS, &wlvif->flags)) in dynamic_ps_timeout_write()
356 wl1271_ps_set_mode(wl, wlvif, STATION_AUTO_PS_MODE); in dynamic_ps_timeout_write()
388 struct wl12xx_vif *wlvif; in forced_ps_write() local
423 wl12xx_for_each_wlvif_sta(wl, wlvif) { in forced_ps_write()
424 if (test_bit(WLVIF_FLAG_IN_PS, &wlvif->flags)) in forced_ps_write()
425 wl1271_ps_set_mode(wl, wlvif, ps_mode); in forced_ps_write()
571 struct wl12xx_vif *wlvif; in vifs_state_read() local
585 #x " = " fmt "\n", wlvif->x)) in vifs_state_read()
[all …]
Dps.h30 int wl1271_ps_set_mode(struct wl1271 *wl, struct wl12xx_vif *wlvif,
35 void wl12xx_ps_link_start(struct wl1271 *wl, struct wl12xx_vif *wlvif,
37 void wl12xx_ps_link_end(struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 hlid);
Dtx.h212 void wl12xx_tx_reset_wlvif(struct wl1271 *wl, struct wl12xx_vif *wlvif);
219 u8 wl12xx_tx_get_hlid_ap(struct wl1271 *wl, struct wl12xx_vif *wlvif,
221 u8 wl12xx_tx_get_hlid(struct wl1271 *wl, struct wl12xx_vif *wlvif,
229 void wl1271_free_sta(struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 hlid);
Dscan.h39 struct wl12xx_vif *wlvif,
42 int wl1271_scan_sched_scan_start(struct wl1271 *wl, struct wl12xx_vif *wlvif);
Dinit.h36 int wl1271_init_ap_rates(struct wl1271 *wl, struct wl12xx_vif *wlvif);