Home
last modified time | relevance | path

Searched refs:wvif (Results 1 – 18 of 18) sorted by relevance

/linux-5.19.10/drivers/net/wireless/silabs/wfx/
Dsta.c63 static void wfx_filter_beacon(struct wfx_vif *wvif, bool filter_beacon) in wfx_filter_beacon() argument
91 wfx_hif_beacon_filter_control(wvif, 0, 1); in wfx_filter_beacon()
93 wfx_hif_set_beacon_filter_table(wvif, ARRAY_SIZE(filter_ies), filter_ies); in wfx_filter_beacon()
94 wfx_hif_beacon_filter_control(wvif, HIF_BEACON_FILTER_ENABLE, 0); in wfx_filter_beacon()
104 struct wfx_vif *wvif = NULL; in wfx_configure_filter() local
118 while ((wvif = wvif_iterate(wdev, wvif)) != NULL) { in wfx_configure_filter()
119 mutex_lock(&wvif->scan_lock); in wfx_configure_filter()
128 wfx_filter_beacon(wvif, filter_beacon); in wfx_configure_filter()
135 vif = wvif_to_vif(wvif); in wfx_configure_filter()
146 wfx_hif_set_rx_filter(wvif, filter_bssid, filter_prbreq); in wfx_configure_filter()
[all …]
Dscan.c24 static int update_probe_tmpl(struct wfx_vif *wvif, struct cfg80211_scan_request *req) in update_probe_tmpl() argument
26 struct ieee80211_vif *vif = wvif_to_vif(wvif); in update_probe_tmpl()
29 skb = ieee80211_probereq_get(wvif->wdev->hw, vif->addr, NULL, 0, in update_probe_tmpl()
35 wfx_hif_set_template_frame(wvif, skb, HIF_TMPLT_PRBREQ, 0); in update_probe_tmpl()
40 static int send_scan_req(struct wfx_vif *wvif, struct cfg80211_scan_request *req, int start_idx) in send_scan_req() argument
42 struct ieee80211_vif *vif = wvif_to_vif(wvif); in send_scan_req()
55 wfx_tx_lock_flush(wvif->wdev); in send_scan_req()
56 wvif->scan_abort = false; in send_scan_req()
57 reinit_completion(&wvif->scan_complete); in send_scan_req()
58 ret = wfx_hif_scan(wvif, req, start_idx, i - start_idx); in send_scan_req()
[all …]
Dhif_tx_mib.c17 int wfx_hif_set_output_power(struct wfx_vif *wvif, int val) in wfx_hif_set_output_power() argument
23 return wfx_hif_write_mib(wvif->wdev, wvif->id, HIF_MIB_ID_CURRENT_TX_POWER_LEVEL, in wfx_hif_set_output_power()
27 int wfx_hif_set_beacon_wakeup_period(struct wfx_vif *wvif, in wfx_hif_set_beacon_wakeup_period() argument
38 return wfx_hif_write_mib(wvif->wdev, wvif->id, HIF_MIB_ID_BEACON_WAKEUP_PERIOD, in wfx_hif_set_beacon_wakeup_period()
42 int wfx_hif_set_rcpi_rssi_threshold(struct wfx_vif *wvif, int rssi_thold, int rssi_hyst) in wfx_hif_set_rcpi_rssi_threshold() argument
59 return wfx_hif_write_mib(wvif->wdev, wvif->id, HIF_MIB_ID_RCPI_RSSI_THRESHOLD, in wfx_hif_set_rcpi_rssi_threshold()
77 int wfx_hif_set_macaddr(struct wfx_vif *wvif, u8 *mac) in wfx_hif_set_macaddr() argument
83 return wfx_hif_write_mib(wvif->wdev, wvif->id, HIF_MIB_ID_DOT11_MAC_ADDRESS, in wfx_hif_set_macaddr()
87 int wfx_hif_set_rx_filter(struct wfx_vif *wvif, bool filter_bssid, bool filter_prbreq) in wfx_hif_set_rx_filter() argument
95 return wfx_hif_write_mib(wvif->wdev, wvif->id, HIF_MIB_ID_RX_FILTER, &arg, sizeof(arg)); in wfx_hif_set_rx_filter()
[all …]
Dhif_tx_mib.h20 int wfx_hif_set_output_power(struct wfx_vif *wvif, int val);
21 int wfx_hif_set_beacon_wakeup_period(struct wfx_vif *wvif,
23 int wfx_hif_set_rcpi_rssi_threshold(struct wfx_vif *wvif, int rssi_thold, int rssi_hyst);
26 int wfx_hif_set_macaddr(struct wfx_vif *wvif, u8 *mac);
27 int wfx_hif_set_rx_filter(struct wfx_vif *wvif, bool filter_bssid, bool fwd_probe_req);
28 int wfx_hif_set_beacon_filter_table(struct wfx_vif *wvif, int tbl_len,
30 int wfx_hif_beacon_filter_control(struct wfx_vif *wvif, int enable, int beacon_count);
32 int wfx_hif_set_template_frame(struct wfx_vif *wvif, struct sk_buff *skb,
34 int wfx_hif_set_mfp(struct wfx_vif *wvif, bool capable, bool required);
35 int wfx_hif_set_block_ack_policy(struct wfx_vif *wvif, u8 tx_tid_policy, u8 rx_tid_policy);
[all …]
Ddata_tx.c46 static void wfx_tx_policy_build(struct wfx_vif *wvif, struct wfx_tx_policy *policy, in wfx_tx_policy_build() argument
49 struct wfx_dev *wdev = wvif->wdev; in wfx_tx_policy_build()
101 static int wfx_tx_policy_get(struct wfx_vif *wvif, struct ieee80211_tx_rate *rates, bool *renew) in wfx_tx_policy_get() argument
104 struct wfx_tx_policy_cache *cache = &wvif->tx_policy_cache; in wfx_tx_policy_get()
108 wfx_tx_policy_build(wvif, &wanted, rates); in wfx_tx_policy_get()
130 ieee80211_stop_queues(wvif->wdev->hw); in wfx_tx_policy_get()
135 static void wfx_tx_policy_put(struct wfx_vif *wvif, int idx) in wfx_tx_policy_put() argument
138 struct wfx_tx_policy_cache *cache = &wvif->tx_policy_cache; in wfx_tx_policy_put()
146 ieee80211_wake_queues(wvif->wdev->hw); in wfx_tx_policy_put()
150 static int wfx_tx_policy_upload(struct wfx_vif *wvif) in wfx_tx_policy_upload() argument
[all …]
Dqueue.c60 void wfx_tx_queues_init(struct wfx_vif *wvif) in wfx_tx_queues_init() argument
69 skb_queue_head_init(&wvif->tx_queue[i].normal); in wfx_tx_queues_init()
70 skb_queue_head_init(&wvif->tx_queue[i].cab); in wfx_tx_queues_init()
71 wvif->tx_queue[i].priority = priorities[i]; in wfx_tx_queues_init()
75 bool wfx_tx_queue_empty(struct wfx_vif *wvif, struct wfx_queue *queue) in wfx_tx_queue_empty() argument
80 void wfx_tx_queues_check_empty(struct wfx_vif *wvif) in wfx_tx_queues_check_empty() argument
85 WARN_ON(atomic_read(&wvif->tx_queue[i].pending_frames)); in wfx_tx_queues_check_empty()
86 WARN_ON(!wfx_tx_queue_empty(wvif, &wvif->tx_queue[i])); in wfx_tx_queues_check_empty()
90 static void __wfx_tx_queue_drop(struct wfx_vif *wvif, in __wfx_tx_queue_drop() argument
103 void wfx_tx_queue_drop(struct wfx_vif *wvif, struct wfx_queue *queue, in wfx_tx_queue_drop() argument
[all …]
Dhif_tx.h41 int wfx_hif_start(struct wfx_vif *wvif, const struct ieee80211_bss_conf *conf,
43 int wfx_hif_reset(struct wfx_vif *wvif, bool reset_stat);
44 int wfx_hif_join(struct wfx_vif *wvif, const struct ieee80211_bss_conf *conf,
46 int wfx_hif_map_link(struct wfx_vif *wvif, bool unmap, u8 *mac_addr, int sta_id, bool mfp);
49 int wfx_hif_set_pm(struct wfx_vif *wvif, bool ps, int dynamic_ps_timeout);
50 int wfx_hif_set_bss_params(struct wfx_vif *wvif, int aid, int beacon_lost_count);
51 int wfx_hif_set_edca_queue_params(struct wfx_vif *wvif, u16 queue,
53 int wfx_hif_beacon_transmit(struct wfx_vif *wvif, bool enable);
54 int wfx_hif_update_ie_beacon(struct wfx_vif *wvif, const u8 *ies, size_t ies_len);
55 int wfx_hif_scan(struct wfx_vif *wvif, struct cfg80211_scan_request *req80211,
[all …]
Dhif_tx.c157 int wfx_hif_reset(struct wfx_vif *wvif, bool reset_stat) in wfx_hif_reset() argument
166 wfx_fill_header(hif, wvif->id, HIF_REQ_ID_RESET, sizeof(*body)); in wfx_hif_reset()
167 ret = wfx_cmd_send(wvif->wdev, hif, NULL, 0, false); in wfx_hif_reset()
223 int wfx_hif_scan(struct wfx_vif *wvif, struct cfg80211_scan_request *req, in wfx_hif_scan() argument
261 wfx_fill_header(hif, wvif->id, HIF_REQ_ID_START_SCAN, buf_len); in wfx_hif_scan()
262 ret = wfx_cmd_send(wvif->wdev, hif, NULL, 0, false); in wfx_hif_scan()
267 int wfx_hif_stop_scan(struct wfx_vif *wvif) in wfx_hif_stop_scan() argument
276 wfx_fill_header(hif, wvif->id, HIF_REQ_ID_STOP_SCAN, 0); in wfx_hif_stop_scan()
277 ret = wfx_cmd_send(wvif->wdev, hif, NULL, 0, false); in wfx_hif_stop_scan()
282 int wfx_hif_join(struct wfx_vif *wvif, const struct ieee80211_bss_conf *conf, in wfx_hif_join() argument
[all …]
Dhif_rx.c100 struct wfx_vif *wvif = wdev_to_wvif(wdev, hif->interface); in wfx_hif_receive_indication() local
103 if (!wvif) { in wfx_hif_receive_indication()
108 wfx_rx_cb(wvif, body, skb); in wfx_hif_receive_indication()
116 struct wfx_vif *wvif = wdev_to_wvif(wdev, hif->interface); in wfx_hif_event_indication() local
120 if (!wvif) { in wfx_hif_event_indication()
127 wfx_event_report_rssi(wvif, body->event_data.rcpi_rssi); in wfx_hif_event_indication()
130 schedule_delayed_work(&wvif->beacon_loss_work, 0); in wfx_hif_event_indication()
133 cancel_delayed_work(&wvif->beacon_loss_work); in wfx_hif_event_indication()
150 struct wfx_vif *wvif = wdev_to_wvif(wdev, hif->interface); in wfx_hif_pm_mode_complete_indication() local
152 if (!wvif) { in wfx_hif_pm_mode_complete_indication()
[all …]
Ddata_rx.c16 static void wfx_rx_handle_ba(struct wfx_vif *wvif, struct ieee80211_mgmt *mgmt) in wfx_rx_handle_ba() argument
18 struct ieee80211_vif *vif = wvif_to_vif(wvif); in wfx_rx_handle_ba()
21 if (wfx_api_older_than(wvif->wdev, 3, 6)) in wfx_rx_handle_ba()
38 void wfx_rx_cb(struct wfx_vif *wvif, const struct wfx_hif_ind_rx *arg, struct sk_buff *skb) in wfx_rx_cb() argument
52 dev_warn(wvif->wdev->dev, "malformed SDU received\n"); in wfx_rx_cb()
70 dev_info(wvif->wdev->dev, "received frame without RSSI data\n"); in wfx_rx_cb()
84 wfx_rx_handle_ba(wvif, mgmt); in wfx_rx_cb()
88 ieee80211_rx_irqsafe(wvif->wdev->hw, skb); in wfx_rx_cb()
Dqueue.h29 void wfx_tx_queues_init(struct wfx_vif *wvif);
30 void wfx_tx_queues_check_empty(struct wfx_vif *wvif);
31 bool wfx_tx_queues_has_cab(struct wfx_vif *wvif);
32 void wfx_tx_queues_put(struct wfx_vif *wvif, struct sk_buff *skb);
35 bool wfx_tx_queue_empty(struct wfx_vif *wvif, struct wfx_queue *queue);
36 void wfx_tx_queue_drop(struct wfx_vif *wvif, struct wfx_queue *queue,
Dkey.c150 static int wfx_add_key(struct wfx_vif *wvif, struct ieee80211_sta *sta, in wfx_add_key() argument
156 struct wfx_dev *wdev = wvif->wdev; in wfx_add_key()
157 int idx = wfx_alloc_key(wvif->wdev); in wfx_add_key()
159 struct ieee80211_vif *vif = wvif_to_vif(wvif); in wfx_add_key()
165 k.int_id = wvif->id; in wfx_add_key()
207 static int wfx_remove_key(struct wfx_vif *wvif, struct ieee80211_key_conf *key) in wfx_remove_key() argument
210 wfx_free_key(wvif->wdev, key->hw_key_idx); in wfx_remove_key()
211 return wfx_hif_remove_key(wvif->wdev, key->hw_key_idx); in wfx_remove_key()
218 struct wfx_vif *wvif = (struct wfx_vif *)vif->drv_priv; in wfx_set_key() local
220 mutex_lock(&wvif->wdev->conf_mutex); in wfx_set_key()
[all …]
Dwfx.h94 static inline struct ieee80211_vif *wvif_to_vif(struct wfx_vif *wvif) in wvif_to_vif() argument
96 return container_of((void *)wvif, struct ieee80211_vif, drv_priv); in wvif_to_vif()
133 struct wfx_vif *wvif; in wvif_count() local
136 wvif = wdev_to_wvif(wdev, i); in wvif_count()
137 if (wvif) in wvif_count()
Dsta.h58 void wfx_suspend_resume_mc(struct wfx_vif *wvif, enum sta_notify_cmd cmd);
59 void wfx_event_report_rssi(struct wfx_vif *wvif, u8 raw_rcpi_rssi);
60 int wfx_update_pm(struct wfx_vif *wvif);
63 void wfx_reset(struct wfx_vif *wvif);
Dtraces.h449 struct wfx_vif *wvif;
459 wvif = NULL;
460 while ((wvif = wvif_iterate(wdev, wvif)) != NULL) {
462 j = wvif->id * IEEE80211_NUM_ACS + i;
464 queue = &wvif->tx_queue[i];
469 __entry->vif_id = wvif->id;
Ddata_rx.h15 void wfx_rx_cb(struct wfx_vif *wvif, const struct wfx_hif_ind_rx *arg, struct sk_buff *skb);
Dscan.h20 void wfx_scan_complete(struct wfx_vif *wvif, int nb_chan_done);
Ddata_tx.h41 void wfx_tx_policy_init(struct wfx_vif *wvif);