/drivers/staging/wfx/ |
D | sta.c | 64 static void wfx_filter_beacon(struct wfx_vif *wvif, bool filter_beacon) in wfx_filter_beacon() argument 87 hif_beacon_filter_control(wvif, 0, 1); in wfx_filter_beacon() 89 hif_set_beacon_filter_table(wvif, 3, filter_ies); in wfx_filter_beacon() 90 hif_beacon_filter_control(wvif, HIF_BEACON_FILTER_ENABLE, 0); in wfx_filter_beacon() 97 struct wfx_vif *wvif = NULL; in wfx_configure_filter() local 112 while ((wvif = wvif_iterate(wdev, wvif)) != NULL) { in wfx_configure_filter() 113 mutex_lock(&wvif->scan_lock); in wfx_configure_filter() 121 wfx_filter_beacon(wvif, filter_beacon); in wfx_configure_filter() 130 wvif->vif->type == NL80211_IFTYPE_AP) { in wfx_configure_filter() 139 hif_set_rx_filter(wvif, filter_bssid, filter_prbreq); in wfx_configure_filter() [all …]
|
D | scan.c | 25 static int update_probe_tmpl(struct wfx_vif *wvif, in update_probe_tmpl() argument 30 skb = ieee80211_probereq_get(wvif->wdev->hw, wvif->vif->addr, in update_probe_tmpl() 36 hif_set_template_frame(wvif, skb, HIF_TMPLT_PRBREQ, 0); in update_probe_tmpl() 41 static int send_scan_req(struct wfx_vif *wvif, in send_scan_req() argument 56 wfx_tx_lock_flush(wvif->wdev); in send_scan_req() 57 wvif->scan_abort = false; in send_scan_req() 58 reinit_completion(&wvif->scan_complete); in send_scan_req() 59 ret = hif_scan(wvif, req, start_idx, i - start_idx, &timeout); in send_scan_req() 61 wfx_tx_unlock(wvif->wdev); in send_scan_req() 64 ret = wait_for_completion_timeout(&wvif->scan_complete, timeout); in send_scan_req() [all …]
|
D | hif_tx_mib.c | 17 int hif_set_output_power(struct wfx_vif *wvif, int val) in hif_set_output_power() argument 23 return hif_write_mib(wvif->wdev, wvif->id, in hif_set_output_power() 28 int hif_set_beacon_wakeup_period(struct wfx_vif *wvif, in hif_set_beacon_wakeup_period() argument 40 return hif_write_mib(wvif->wdev, wvif->id, in hif_set_beacon_wakeup_period() 45 int hif_set_rcpi_rssi_threshold(struct wfx_vif *wvif, in hif_set_rcpi_rssi_threshold() argument 63 return hif_write_mib(wvif->wdev, wvif->id, in hif_set_rcpi_rssi_threshold() 82 int hif_set_macaddr(struct wfx_vif *wvif, u8 *mac) in hif_set_macaddr() argument 88 return hif_write_mib(wvif->wdev, wvif->id, HIF_MIB_ID_DOT11_MAC_ADDRESS, in hif_set_macaddr() 92 int hif_set_rx_filter(struct wfx_vif *wvif, in hif_set_rx_filter() argument 101 return hif_write_mib(wvif->wdev, wvif->id, HIF_MIB_ID_RX_FILTER, in hif_set_rx_filter() [all …]
|
D | data_tx.c | 46 static void wfx_tx_policy_build(struct wfx_vif *wvif, struct tx_policy *policy, in wfx_tx_policy_build() argument 49 struct wfx_dev *wdev = wvif->wdev; in wfx_tx_policy_build() 105 static int wfx_tx_policy_get(struct wfx_vif *wvif, in wfx_tx_policy_get() argument 109 struct tx_policy_cache *cache = &wvif->tx_policy_cache; in wfx_tx_policy_get() 112 wfx_tx_policy_build(wvif, &wanted, rates); in wfx_tx_policy_get() 137 ieee80211_stop_queues(wvif->wdev->hw); in wfx_tx_policy_get() 142 static void wfx_tx_policy_put(struct wfx_vif *wvif, int idx) in wfx_tx_policy_put() argument 145 struct tx_policy_cache *cache = &wvif->tx_policy_cache; in wfx_tx_policy_put() 153 ieee80211_wake_queues(wvif->wdev->hw); in wfx_tx_policy_put() 157 static int wfx_tx_policy_upload(struct wfx_vif *wvif) in wfx_tx_policy_upload() argument [all …]
|
D | queue.c | 61 void wfx_tx_queues_init(struct wfx_vif *wvif) in wfx_tx_queues_init() argument 70 skb_queue_head_init(&wvif->tx_queue[i].normal); in wfx_tx_queues_init() 71 skb_queue_head_init(&wvif->tx_queue[i].cab); in wfx_tx_queues_init() 72 wvif->tx_queue[i].priority = priorities[i]; in wfx_tx_queues_init() 76 void wfx_tx_queues_check_empty(struct wfx_vif *wvif) in wfx_tx_queues_check_empty() argument 81 WARN_ON(atomic_read(&wvif->tx_queue[i].pending_frames)); in wfx_tx_queues_check_empty() 82 WARN_ON(!skb_queue_empty_lockless(&wvif->tx_queue[i].normal)); in wfx_tx_queues_check_empty() 83 WARN_ON(!skb_queue_empty_lockless(&wvif->tx_queue[i].cab)); in wfx_tx_queues_check_empty() 87 bool wfx_tx_queue_empty(struct wfx_vif *wvif, struct wfx_queue *queue) in wfx_tx_queue_empty() argument 92 static void __wfx_tx_queue_drop(struct wfx_vif *wvif, in __wfx_tx_queue_drop() argument [all …]
|
D | hif_tx_mib.h | 15 int hif_set_output_power(struct wfx_vif *wvif, int val); 16 int hif_set_beacon_wakeup_period(struct wfx_vif *wvif, 19 int hif_set_rcpi_rssi_threshold(struct wfx_vif *wvif, 23 int hif_set_macaddr(struct wfx_vif *wvif, u8 *mac); 24 int hif_set_rx_filter(struct wfx_vif *wvif, 26 int hif_set_beacon_filter_table(struct wfx_vif *wvif, int tbl_len, 28 int hif_beacon_filter_control(struct wfx_vif *wvif, 31 int hif_set_template_frame(struct wfx_vif *wvif, struct sk_buff *skb, 33 int hif_set_mfp(struct wfx_vif *wvif, bool capable, bool required); 34 int hif_set_block_ack_policy(struct wfx_vif *wvif, [all …]
|
D | hif_tx.c | 159 int hif_reset(struct wfx_vif *wvif, bool reset_stat) in hif_reset() argument 168 wfx_fill_header(hif, wvif->id, HIF_REQ_ID_RESET, sizeof(*body)); in hif_reset() 169 ret = wfx_cmd_send(wvif->wdev, hif, NULL, 0, false); in hif_reset() 229 int hif_scan(struct wfx_vif *wvif, struct cfg80211_scan_request *req, in hif_scan() argument 279 wfx_fill_header(hif, wvif->id, HIF_REQ_ID_START_SCAN, buf_len); in hif_scan() 280 ret = wfx_cmd_send(wvif->wdev, hif, NULL, 0, false); in hif_scan() 285 int hif_stop_scan(struct wfx_vif *wvif) in hif_stop_scan() argument 294 wfx_fill_header(hif, wvif->id, HIF_REQ_ID_STOP_SCAN, 0); in hif_stop_scan() 295 ret = wfx_cmd_send(wvif->wdev, hif, NULL, 0, false); in hif_stop_scan() 300 int hif_join(struct wfx_vif *wvif, const struct ieee80211_bss_conf *conf, in hif_join() argument [all …]
|
D | hif_tx.h | 37 int hif_reset(struct wfx_vif *wvif, bool reset_stat); 42 int hif_scan(struct wfx_vif *wvif, struct cfg80211_scan_request *req80211, 44 int hif_stop_scan(struct wfx_vif *wvif); 45 int hif_join(struct wfx_vif *wvif, const struct ieee80211_bss_conf *conf, 47 int hif_set_pm(struct wfx_vif *wvif, bool ps, int dynamic_ps_timeout); 48 int hif_set_bss_params(struct wfx_vif *wvif, int aid, int beacon_lost_count); 51 int hif_set_edca_queue_params(struct wfx_vif *wvif, u16 queue, 53 int hif_start(struct wfx_vif *wvif, const struct ieee80211_bss_conf *conf, 55 int hif_beacon_transmit(struct wfx_vif *wvif, bool enable); 56 int hif_map_link(struct wfx_vif *wvif, [all …]
|
D | hif_rx.c | 109 struct wfx_vif *wvif = wdev_to_wvif(wdev, hif->interface); in hif_receive_indication() local 112 if (!wvif) { in hif_receive_indication() 118 wfx_rx_cb(wvif, body, skb); in hif_receive_indication() 126 struct wfx_vif *wvif = wdev_to_wvif(wdev, hif->interface); in hif_event_indication() local 130 if (!wvif) { in hif_event_indication() 137 wfx_event_report_rssi(wvif, body->event_data.rcpi_rssi); in hif_event_indication() 140 schedule_delayed_work(&wvif->beacon_loss_work, 0); in hif_event_indication() 143 cancel_delayed_work(&wvif->beacon_loss_work); in hif_event_indication() 162 struct wfx_vif *wvif = wdev_to_wvif(wdev, hif->interface); in hif_pm_mode_complete_indication() local 164 if (!wvif) { in hif_pm_mode_complete_indication() [all …]
|
D | data_rx.c | 16 static void wfx_rx_handle_ba(struct wfx_vif *wvif, struct ieee80211_mgmt *mgmt) in wfx_rx_handle_ba() argument 20 if (wfx_api_older_than(wvif->wdev, 3, 6)) in wfx_rx_handle_ba() 27 ieee80211_start_rx_ba_session_offl(wvif->vif, mgmt->sa, tid); in wfx_rx_handle_ba() 32 ieee80211_stop_rx_ba_session_offl(wvif->vif, mgmt->sa, tid); in wfx_rx_handle_ba() 37 void wfx_rx_cb(struct wfx_vif *wvif, in wfx_rx_cb() argument 52 dev_warn(wvif->wdev->dev, "malformed SDU received\n"); in wfx_rx_cb() 71 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()
|
D | queue.h | 29 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,
|
D | key.c | 157 static int wfx_add_key(struct wfx_vif *wvif, struct ieee80211_sta *sta, in wfx_add_key() argument 163 struct wfx_dev *wdev = wvif->wdev; in wfx_add_key() 164 int idx = wfx_alloc_key(wvif->wdev); in wfx_add_key() 171 k.int_id = wvif->id; in wfx_add_key() 186 &seq, wvif->vif->type); in wfx_add_key() 219 static int wfx_remove_key(struct wfx_vif *wvif, struct ieee80211_key_conf *key) in wfx_remove_key() argument 222 wfx_free_key(wvif->wdev, key->hw_key_idx); in wfx_remove_key() 223 return hif_remove_key(wvif->wdev, key->hw_key_idx); in wfx_remove_key() 231 struct wfx_vif *wvif = (struct wfx_vif *)vif->drv_priv; in wfx_set_key() local 233 mutex_lock(&wvif->wdev->conf_mutex); in wfx_set_key() [all …]
|
D | sta.h | 65 void wfx_suspend_resume_mc(struct wfx_vif *wvif, enum sta_notify_cmd cmd); 66 void wfx_event_report_rssi(struct wfx_vif *wvif, u8 raw_rcpi_rssi); 67 int wfx_update_pm(struct wfx_vif *wvif); 70 void wfx_reset(struct wfx_vif *wvif);
|
D | wfx.h | 132 struct wfx_vif *wvif; in wvif_count() local 135 wvif = wdev_to_wvif(wdev, i); in wvif_count() 136 if (wvif) in wvif_count()
|
D | debug.c | 325 struct wfx_vif *wvif; in wfx_ps_timeout_set() local 328 wvif = NULL; in wfx_ps_timeout_set() 329 while ((wvif = wvif_iterate(wdev, wvif)) != NULL) in wfx_ps_timeout_set() 330 wfx_update_pm(wvif); in wfx_ps_timeout_set()
|
D | traces.h | 454 struct wfx_vif *wvif; 464 wvif = NULL; 465 while ((wvif = wvif_iterate(wdev, wvif)) != NULL) { 467 j = wvif->id * IEEE80211_NUM_ACS + i; 469 queue = &wvif->tx_queue[i]; 474 __entry->vif_id = wvif->id;
|
D | data_rx.h | 15 void wfx_rx_cb(struct wfx_vif *wvif,
|
D | scan.h | 20 void wfx_scan_complete(struct wfx_vif *wvif);
|
D | data_tx.h | 41 void wfx_tx_policy_init(struct wfx_vif *wvif);
|