Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/net/wireless/ti/wlcore/
Dmain.c58 static void wl1271_free_ap_keys(struct wl1271 *wl, struct wl12xx_vif *wlvif);
60 static int wl12xx_set_authorized(struct wl1271 *wl, struct wl12xx_vif *wlvif) in wl12xx_set_authorized() argument
64 if (WARN_ON(wlvif->bss_type != BSS_TYPE_STA_BSS)) in wl12xx_set_authorized()
67 if (!test_bit(WLVIF_FLAG_STA_ASSOCIATED, &wlvif->flags)) in wl12xx_set_authorized()
70 if (test_and_set_bit(WLVIF_FLAG_STA_STATE_SENT, &wlvif->flags)) in wl12xx_set_authorized()
73 ret = wl12xx_cmd_set_peer_state(wl, wlvif, wlvif->sta.hlid); in wl12xx_set_authorized()
94 static int wl1271_set_rx_streaming(struct wl1271 *wl, struct wl12xx_vif *wlvif, in wl1271_set_rx_streaming() argument
100 ret = wl1271_acx_ps_rx_streaming(wl, wlvif, enable); in wl1271_set_rx_streaming()
105 set_bit(WLVIF_FLAG_RX_STREAMING_STARTED, &wlvif->flags); in wl1271_set_rx_streaming()
107 clear_bit(WLVIF_FLAG_RX_STREAMING_STARTED, &wlvif->flags); in wl1271_set_rx_streaming()
[all …]
Dcmd.c326 int wl12xx_allocate_link(struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 *hlid) in wl12xx_allocate_link() argument
338 __set_bit(link, wlvif->links_map); in wl12xx_allocate_link()
349 wl->links[link].wlvif = wlvif; in wl12xx_allocate_link()
355 if (wlvif->bss_type != BSS_TYPE_AP_BSS) in wl12xx_allocate_link()
356 wl->links[link].total_freed_pkts = wlvif->total_freed_pkts; in wl12xx_allocate_link()
364 void wl12xx_free_link(struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 *hlid) in wl12xx_free_link() argument
374 __clear_bit(*hlid, wlvif->links_map); in wl12xx_free_link()
387 wl->links[*hlid].wlvif = NULL; in wl12xx_free_link()
389 if (wlvif->bss_type == BSS_TYPE_AP_BSS && in wl12xx_free_link()
390 *hlid == wlvif->ap.bcast_hlid) { in wl12xx_free_link()
[all …]
Dinit.c159 struct wl12xx_vif *wlvif) in wl1271_ap_init_deauth_template() argument
174 rate = wl1271_tx_min_rate_get(wl, wlvif->basic_rate_set); in wl1271_ap_init_deauth_template()
175 ret = wl1271_cmd_template_set(wl, wlvif->role_id, in wl1271_ap_init_deauth_template()
187 struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif); in wl1271_ap_init_null_template() local
207 rate = wl1271_tx_min_rate_get(wl, wlvif->basic_rate_set); in wl1271_ap_init_null_template()
208 ret = wl1271_cmd_template_set(wl, wlvif->role_id, in wl1271_ap_init_null_template()
220 struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif); in wl1271_ap_init_qos_null_template() local
240 rate = wl1271_tx_min_rate_get(wl, wlvif->basic_rate_set); in wl1271_ap_init_qos_null_template()
241 ret = wl1271_cmd_template_set(wl, wlvif->role_id, in wl1271_ap_init_qos_null_template()
262 struct wl12xx_vif *wlvif) in wl12xx_init_phy_vif_config() argument
[all …]
Devent.c116 struct wl12xx_vif *wlvif; in wlcore_event_rssi_trigger() local
124 wl12xx_for_each_wlvif_sta(wl, wlvif) { in wlcore_event_rssi_trigger()
125 if (metric <= wlvif->rssi_thold) in wlcore_event_rssi_trigger()
130 vif = wl12xx_wlvif_to_vif(wlvif); in wlcore_event_rssi_trigger()
131 if (event != wlvif->last_rssi_event) in wlcore_event_rssi_trigger()
134 wlvif->last_rssi_event = event; in wlcore_event_rssi_trigger()
139 static void wl1271_stop_ba_event(struct wl1271 *wl, struct wl12xx_vif *wlvif) in wl1271_stop_ba_event() argument
141 struct ieee80211_vif *vif = wl12xx_wlvif_to_vif(wlvif); in wl1271_stop_ba_event()
143 if (wlvif->bss_type != BSS_TYPE_AP_BSS) { in wl1271_stop_ba_event()
144 u8 hlid = wlvif->sta.hlid; in wl1271_stop_ba_event()
[all …]
Dtx.c45 struct wl12xx_vif *wlvif, u8 id) in wl1271_set_default_wep_key() argument
48 bool is_ap = (wlvif->bss_type == BSS_TYPE_AP_BSS); in wl1271_set_default_wep_key()
52 wlvif->ap.bcast_hlid); in wl1271_set_default_wep_key()
54 ret = wl12xx_cmd_set_default_wep_key(wl, id, wlvif->sta.hlid); in wl1271_set_default_wep_key()
90 struct wl12xx_vif *wlvif, in wl1271_tx_ap_update_inconnection_sta() argument
105 wl1271_acx_set_inconnection_sta(wl, wlvif, hdr->addr1); in wl1271_tx_ap_update_inconnection_sta()
112 wlcore_update_inconn_sta(wl, wlvif, NULL, true); in wl1271_tx_ap_update_inconnection_sta()
113 wlvif->pending_auth_reply_time = jiffies; in wl1271_tx_ap_update_inconnection_sta()
114 cancel_delayed_work(&wlvif->pending_auth_complete_work); in wl1271_tx_ap_update_inconnection_sta()
116 &wlvif->pending_auth_complete_work, in wl1271_tx_ap_update_inconnection_sta()
[all …]
Dps.c29 int wl1271_ps_set_mode(struct wl1271 *wl, struct wl12xx_vif *wlvif, in wl1271_ps_set_mode() argument
41 ret = wl1271_acx_wake_up_conditions(wl, wlvif, in wl1271_ps_set_mode()
49 ret = wl1271_cmd_ps_mode(wl, wlvif, mode, timeout); in wl1271_ps_set_mode()
53 set_bit(WLVIF_FLAG_IN_PS, &wlvif->flags); in wl1271_ps_set_mode()
59 if ((wlvif->band == NL80211_BAND_2GHZ) && in wl1271_ps_set_mode()
60 (wlvif->basic_rate < CONF_HW_BIT_RATE_9MBPS)) { in wl1271_ps_set_mode()
61 ret = wl1271_acx_bet_enable(wl, wlvif, true); in wl1271_ps_set_mode()
70 if ((wlvif->band == NL80211_BAND_2GHZ) && in wl1271_ps_set_mode()
71 (wlvif->basic_rate < CONF_HW_BIT_RATE_9MBPS)) { in wl1271_ps_set_mode()
72 ret = wl1271_acx_bet_enable(wl, wlvif, false); in wl1271_ps_set_mode()
[all …]
Dwlcore_i.h288 struct wl12xx_vif *wlvif; member
513 struct ieee80211_vif *wl12xx_wlvif_to_vif(struct wl12xx_vif *wlvif) in wl12xx_wlvif_to_vif() argument
515 return container_of((void *)wlvif, struct ieee80211_vif, drv_priv); in wl12xx_wlvif_to_vif()
518 static inline bool wlcore_is_p2p_mgmt(struct wl12xx_vif *wlvif) in wlcore_is_p2p_mgmt() argument
520 return wl12xx_wlvif_to_vif(wlvif)->type == NL80211_IFTYPE_P2P_DEVICE; in wlcore_is_p2p_mgmt()
523 #define wl12xx_for_each_wlvif(wl, wlvif) \ argument
524 list_for_each_entry(wlvif, &wl->wlvif_list, list)
526 #define wl12xx_for_each_wlvif_continue(wl, wlvif) \ argument
527 list_for_each_entry_continue(wlvif, &wl->wlvif_list, list)
529 #define wl12xx_for_each_wlvif_bss_type(wl, wlvif, _bss_type) \ argument
[all …]
Dacx.c36 int wl1271_acx_wake_up_conditions(struct wl1271 *wl, struct wl12xx_vif *wlvif, in wl1271_acx_wake_up_conditions() argument
51 wake_up->role_id = wlvif->role_id; in wl1271_acx_wake_up_conditions()
96 int wl1271_acx_tx_power(struct wl1271 *wl, struct wl12xx_vif *wlvif, in wl1271_acx_tx_power() argument
113 acx->role_id = wlvif->role_id; in wl1271_acx_tx_power()
127 int wl1271_acx_feature_cfg(struct wl1271 *wl, struct wl12xx_vif *wlvif) in wl1271_acx_feature_cfg() argument
141 feature->role_id = wlvif->role_id; in wl1271_acx_feature_cfg()
198 int wl1271_acx_slot(struct wl1271 *wl, struct wl12xx_vif *wlvif, in wl1271_acx_slot() argument
212 slot->role_id = wlvif->role_id; in wl1271_acx_slot()
227 int wl1271_acx_group_address_tbl(struct wl1271 *wl, struct wl12xx_vif *wlvif, in wl1271_acx_group_address_tbl() argument
242 acx->role_id = wlvif->role_id; in wl1271_acx_group_address_tbl()
[all …]
Dcmd.h37 int wl12xx_cmd_role_start_sta(struct wl1271 *wl, struct wl12xx_vif *wlvif);
38 int wl12xx_cmd_role_stop_sta(struct wl1271 *wl, struct wl12xx_vif *wlvif);
39 int wl12xx_cmd_role_start_ap(struct wl1271 *wl, struct wl12xx_vif *wlvif);
40 int wl12xx_cmd_role_stop_ap(struct wl1271 *wl, struct wl12xx_vif *wlvif);
41 int wl12xx_cmd_role_start_ibss(struct wl1271 *wl, struct wl12xx_vif *wlvif);
42 int wl12xx_start_dev(struct wl1271 *wl, struct wl12xx_vif *wlvif,
44 int wl12xx_stop_dev(struct wl1271 *wl, struct wl12xx_vif *wlvif);
52 int wl1271_cmd_ps_mode(struct wl1271 *wl, struct wl12xx_vif *wlvif,
59 int wl12xx_cmd_build_null_data(struct wl1271 *wl, struct wl12xx_vif *wlvif);
60 int wl1271_cmd_build_ps_poll(struct wl1271 *wl, struct wl12xx_vif *wlvif,
[all …]
Dtx.h215 int wlcore_tx_get_mac80211_queue(struct wl12xx_vif *wlvif, int queue) in wlcore_tx_get_mac80211_queue() argument
217 int mac_queue = wlvif->hw_queue_base; in wlcore_tx_get_mac80211_queue()
246 void wl12xx_tx_reset_wlvif(struct wl1271 *wl, struct wl12xx_vif *wlvif);
253 u8 wl12xx_tx_get_hlid(struct wl1271 *wl, struct wl12xx_vif *wlvif,
262 void wlcore_stop_queue_locked(struct wl1271 *wl, struct wl12xx_vif *wlvif,
264 void wlcore_stop_queue(struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 queue,
266 void wlcore_wake_queue(struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 queue,
273 struct wl12xx_vif *wlvif, u8 queue,
277 struct wl12xx_vif *wlvif,
280 bool wlcore_is_queue_stopped_locked(struct wl1271 *wl, struct wl12xx_vif *wlvif,
[all …]
Dacx.h1044 struct wl12xx_vif *wlvif,
1047 int wl1271_acx_tx_power(struct wl1271 *wl, struct wl12xx_vif *wlvif,
1049 int wl1271_acx_feature_cfg(struct wl1271 *wl, struct wl12xx_vif *wlvif);
1053 int wl1271_acx_slot(struct wl1271 *wl, struct wl12xx_vif *wlvif,
1055 int wl1271_acx_group_address_tbl(struct wl1271 *wl, struct wl12xx_vif *wlvif,
1058 struct wl12xx_vif *wlvif);
1059 int wl1271_acx_rts_threshold(struct wl1271 *wl, struct wl12xx_vif *wlvif,
1062 int wl1271_acx_beacon_filter_opt(struct wl1271 *wl, struct wl12xx_vif *wlvif,
1065 struct wl12xx_vif *wlvif);
1066 int wl1271_acx_conn_monit_params(struct wl1271 *wl, struct wl12xx_vif *wlvif,
[all …]
Dhw_ops.h101 wlcore_hw_init_vif(struct wl1271 *wl, struct wl12xx_vif *wlvif) in wlcore_hw_init_vif() argument
104 return wl->ops->init_vif(wl, wlvif); in wlcore_hw_init_vif()
119 wlcore_hw_sta_get_ap_rate_mask(struct wl1271 *wl, struct wl12xx_vif *wlvif) in wlcore_hw_sta_get_ap_rate_mask() argument
124 return wl->ops->sta_get_ap_rate_mask(wl, wlvif); in wlcore_hw_sta_get_ap_rate_mask()
157 struct wl12xx_vif *wlvif) in wlcore_hw_ap_get_mimo_wide_rate_mask() argument
160 return wl->ops->ap_get_mimo_wide_rate_mask(wl, wlvif); in wlcore_hw_ap_get_mimo_wide_rate_mask()
214 wlcore_hw_sta_rc_update(struct wl1271 *wl, struct wl12xx_vif *wlvif) in wlcore_hw_sta_rc_update() argument
217 wl->ops->sta_rc_update(wl, wlvif); in wlcore_hw_sta_rc_update()
316 wlcore_hw_set_cac(struct wl1271 *wl, struct wl12xx_vif *wlvif, bool start) in wlcore_hw_set_cac() argument
321 return wl->ops->set_cac(wl, wlvif, start); in wlcore_hw_set_cac()
[all …]
Dscan.c38 struct wl12xx_vif *wlvif; in wl1271_scan_complete_work() local
57 wlvif = wl->scan_wlvif; in wl1271_scan_complete_work()
76 if (test_bit(WLVIF_FLAG_STA_ASSOCIATED, &wlvif->flags)) { in wl1271_scan_complete_work()
78 wl1271_cmd_build_ap_probe_req(wl, wlvif, wlvif->probereq); in wl1271_scan_complete_work()
101 struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif); in wlcore_started_vifs_iter() local
110 switch (wlvif->bss_type) { in wlcore_started_vifs_iter()
112 if (test_bit(WLVIF_FLAG_STA_ASSOCIATED, &wlvif->flags)) in wlcore_started_vifs_iter()
117 if (wlvif->wl->active_sta_count > 0) in wlcore_started_vifs_iter()
350 struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif); in wlcore_scan() local
370 wl->scan_wlvif = wlvif; in wlcore_scan()
[all …]
Dwlcore.h78 int (*init_vif)(struct wl1271 *wl, struct wl12xx_vif *wlvif);
82 struct wl12xx_vif *wlvif);
92 struct wl12xx_vif *wlvif);
96 int (*scan_start)(struct wl1271 *wl, struct wl12xx_vif *wlvif,
98 int (*scan_stop)(struct wl1271 *wl, struct wl12xx_vif *wlvif);
99 int (*sched_scan_start)(struct wl1271 *wl, struct wl12xx_vif *wlvif,
102 void (*sched_scan_stop)(struct wl1271 *wl, struct wl12xx_vif *wlvif);
109 struct wl12xx_vif *wlvif,
112 void (*sta_rc_update)(struct wl1271 *wl, struct wl12xx_vif *wlvif);
129 int (*set_cac)(struct wl1271 *wl, struct wl12xx_vif *wlvif,
[all …]
Dps.h30 int wl1271_ps_set_mode(struct wl1271 *wl, struct wl12xx_vif *wlvif,
32 void wl12xx_ps_link_start(struct wl1271 *wl, struct wl12xx_vif *wlvif,
34 void wl12xx_ps_link_end(struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 hlid);
Ddebugfs.c281 struct wl12xx_vif *wlvif; in dynamic_ps_timeout_write() local
313 wl12xx_for_each_wlvif_sta(wl, wlvif) { in dynamic_ps_timeout_write()
314 if (test_bit(WLVIF_FLAG_IN_PS, &wlvif->flags)) in dynamic_ps_timeout_write()
315 wl1271_ps_set_mode(wl, wlvif, STATION_AUTO_PS_MODE); in dynamic_ps_timeout_write()
348 struct wl12xx_vif *wlvif; in forced_ps_write() local
385 wl12xx_for_each_wlvif_sta(wl, wlvif) { in forced_ps_write()
386 if (test_bit(WLVIF_FLAG_IN_PS, &wlvif->flags)) in forced_ps_write()
387 wl1271_ps_set_mode(wl, wlvif, ps_mode); in forced_ps_write()
454 struct wl12xx_vif *wlvif; in driver_state_read() local
478 wl12xx_for_each_wlvif_sta(wl, wlvif) { in driver_state_read()
[all …]
Dscan.h35 void wl1271_scan_stm(struct wl1271 *wl, struct wl12xx_vif *wlvif);
38 struct wl12xx_vif *wlvif,
41 int wl1271_scan_sched_scan_start(struct wl1271 *wl, struct wl12xx_vif *wlvif);
175 struct wl12xx_vif *wlvif,
Dinit.h36 int wl1271_init_ap_rates(struct wl1271 *wl, struct wl12xx_vif *wlvif);
38 int wl1271_sta_hw_init(struct wl1271 *wl, struct wl12xx_vif *wlvif);
/Linux-v4.19/drivers/net/wireless/ti/wl12xx/
Dscan.c94 static int wl1271_scan_send(struct wl1271 *wl, struct wl12xx_vif *wlvif, in wl1271_scan_send() argument
98 struct ieee80211_vif *vif = wl12xx_wlvif_to_vif(wlvif); in wl1271_scan_send()
122 if (wlcore_is_p2p_mgmt(wlvif)) in wl1271_scan_send()
123 cmd->params.role_id = wlvif->dev_role_id; in wl1271_scan_send()
125 cmd->params.role_id = wlvif->role_id; in wl1271_scan_send()
159 ret = wl12xx_cmd_build_probe_req(wl, wlvif, in wl1271_scan_send()
191 int wl12xx_scan_stop(struct wl1271 *wl, struct wl12xx_vif *wlvif) in wl12xx_scan_stop() argument
218 void wl1271_scan_stm(struct wl1271 *wl, struct wl12xx_vif *wlvif) in wl1271_scan_stm() argument
230 mask = wlvif->bitrate_masks[band]; in wl1271_scan_stm()
237 ret = wl1271_scan_send(wl, wlvif, band, false, rate); in wl1271_scan_stm()
[all …]
Dscan.h132 int wl12xx_scan_start(struct wl1271 *wl, struct wl12xx_vif *wlvif,
134 int wl12xx_scan_stop(struct wl1271 *wl, struct wl12xx_vif *wlvif);
135 void wl12xx_scan_completed(struct wl1271 *wl, struct wl12xx_vif *wlvif);
136 int wl12xx_sched_scan_start(struct wl1271 *wl, struct wl12xx_vif *wlvif,
139 void wl12xx_scan_sched_scan_stop(struct wl1271 *wl, struct wl12xx_vif *wlvif);
/Linux-v4.19/drivers/net/wireless/ti/wl18xx/
Dcmd.c29 struct wl12xx_vif *wlvif, in wl18xx_cmd_channel_switch() argument
45 cmd->role_id = wlvif->role_id; in wl18xx_cmd_channel_switch()
65 if (wlvif->bss_type == BSS_TYPE_STA_BSS) in wl18xx_cmd_channel_switch()
66 supported_rates |= wlcore_hw_sta_get_ap_rate_mask(wl, wlvif); in wl18xx_cmd_channel_switch()
69 wlcore_hw_ap_get_mimo_wide_rate_mask(wl, wlvif); in wl18xx_cmd_channel_switch()
70 if (wlvif->p2p) in wl18xx_cmd_channel_switch()
73 cmd->channel_type = wlvif->channel_type; in wl18xx_cmd_channel_switch()
176 int wl18xx_cmd_set_cac(struct wl1271 *wl, struct wl12xx_vif *wlvif, bool start) in wl18xx_cmd_set_cac() argument
182 wlvif->channel, start ? "start" : "stop"); in wl18xx_cmd_set_cac()
188 cmd->role_id = wlvif->role_id; in wl18xx_cmd_set_cac()
[all …]
Dscan.c41 static int wl18xx_scan_send(struct wl1271 *wl, struct wl12xx_vif *wlvif, in wl18xx_scan_send() argument
55 if (wlcore_is_p2p_mgmt(wlvif)) in wl18xx_scan_send()
56 cmd->role_id = wlvif->dev_role_id; in wl18xx_scan_send()
58 cmd->role_id = wlvif->role_id; in wl18xx_scan_send()
114 ret = wl12xx_cmd_build_probe_req(wl, wlvif, in wl18xx_scan_send()
131 ret = wl12xx_cmd_build_probe_req(wl, wlvif, in wl18xx_scan_send()
160 void wl18xx_scan_completed(struct wl1271 *wl, struct wl12xx_vif *wlvif) in wl18xx_scan_completed() argument
170 struct wl12xx_vif *wlvif, in wl18xx_scan_sched_scan_config() argument
182 filter_type = wlcore_scan_sched_scan_ssid_list(wl, wlvif, req); in wl18xx_scan_sched_scan_config()
192 cmd->role_id = wlvif->role_id; in wl18xx_scan_sched_scan_config()
[all …]
Dscan.h119 int wl18xx_scan_start(struct wl1271 *wl, struct wl12xx_vif *wlvif,
121 int wl18xx_scan_stop(struct wl1271 *wl, struct wl12xx_vif *wlvif);
122 void wl18xx_scan_completed(struct wl1271 *wl, struct wl12xx_vif *wlvif);
123 int wl18xx_sched_scan_start(struct wl1271 *wl, struct wl12xx_vif *wlvif,
126 void wl18xx_scan_sched_scan_stop(struct wl1271 *wl, struct wl12xx_vif *wlvif);
Devent.c222 struct wl12xx_vif *wlvif; in wl18xx_process_mailbox_events() local
229 wlvif = wl->links[link_id].wlvif; in wl18xx_process_mailbox_events()
230 vif = wl12xx_wlvif_to_vif(wlvif); in wl18xx_process_mailbox_events()
235 if (wlvif->bss_type != BSS_TYPE_AP_BSS) in wl18xx_process_mailbox_events()
Dcmd.h87 struct wl12xx_vif *wlvif,
93 int wl18xx_cmd_set_cac(struct wl1271 *wl, struct wl12xx_vif *wlvif, bool start);
95 int wl18xx_cmd_dfs_master_restart(struct wl1271 *wl, struct wl12xx_vif *wlvif);

12