Lines Matching refs:adapter

44 	struct mwifiex_adapter *adapter = priv->adapter;  in mwifiex_process_uap_event()  local
46 u32 eventcause = adapter->event_cause; in mwifiex_process_uap_event()
58 (adapter->event_body + MWIFIEX_UAP_EVENT_EXTRA_HEADER); in mwifiex_process_uap_event()
83 dev_warn(adapter->dev, in mwifiex_process_uap_event()
104 deauth_mac = adapter->event_body + in mwifiex_process_uap_event()
119 mwifiex_stop_net_dev_queue(priv->netdev, adapter); in mwifiex_process_uap_event()
128 mwifiex_wake_up_net_dev_queue(priv->netdev, adapter); in mwifiex_process_uap_event()
131 dev_dbg(adapter->dev, "AP EVENT: event id: %#x\n", eventcause); in mwifiex_process_uap_event()
132 memcpy(priv->netdev->dev_addr, adapter->event_body + 2, in mwifiex_process_uap_event()
139 dev_dbg(adapter->dev, "AP EVENT: event id: %#x\n", eventcause); in mwifiex_process_uap_event()
142 ctrl = le16_to_cpu(*(__le16 *)adapter->event_body); in mwifiex_process_uap_event()
143 dev_dbg(adapter->dev, "event: AMSDU_AGGR_CTRL %d\n", ctrl); in mwifiex_process_uap_event()
146 adapter->tx_buf_size = in mwifiex_process_uap_event()
147 min_t(u16, adapter->curr_tx_buf_size, ctrl); in mwifiex_process_uap_event()
148 dev_dbg(adapter->dev, "event: tx_buf_size %d\n", in mwifiex_process_uap_event()
149 adapter->tx_buf_size); in mwifiex_process_uap_event()
153 dev_dbg(adapter->dev, "event: ADDBA Request\n"); in mwifiex_process_uap_event()
157 adapter->event_body, false); in mwifiex_process_uap_event()
160 dev_dbg(adapter->dev, "event: DELBA Request\n"); in mwifiex_process_uap_event()
162 mwifiex_11n_delete_ba_stream(priv, adapter->event_body); in mwifiex_process_uap_event()
165 dev_dbg(adapter->dev, "event: BA Stream timeout\n"); in mwifiex_process_uap_event()
167 ba_timeout = (void *)adapter->event_body; in mwifiex_process_uap_event()
172 dev_dbg(adapter->dev, "event: EXT_SCAN Report\n"); in mwifiex_process_uap_event()
173 if (adapter->ext_scan) in mwifiex_process_uap_event()
175 adapter->event_skb->data); in mwifiex_process_uap_event()
178 dev_dbg(adapter->dev, "event: TX_STATUS Report\n"); in mwifiex_process_uap_event()
179 mwifiex_parse_tx_status_event(priv, adapter->event_body); in mwifiex_process_uap_event()
182 dev_dbg(adapter->dev, "info: EVENT: SLEEP\n"); in mwifiex_process_uap_event()
184 adapter->ps_state = PS_STATE_PRE_SLEEP; in mwifiex_process_uap_event()
186 mwifiex_check_ps_cond(adapter); in mwifiex_process_uap_event()
190 dev_dbg(adapter->dev, "info: EVENT: AWAKE\n"); in mwifiex_process_uap_event()
191 if (!adapter->pps_uapsd_mode && in mwifiex_process_uap_event()
192 priv->media_connected && adapter->sleep_period.period) { in mwifiex_process_uap_event()
193 adapter->pps_uapsd_mode = true; in mwifiex_process_uap_event()
194 dev_dbg(adapter->dev, in mwifiex_process_uap_event()
197 adapter->tx_lock_flag = false; in mwifiex_process_uap_event()
198 if (adapter->pps_uapsd_mode && adapter->gen_null_pkt) { in mwifiex_process_uap_event()
200 if (adapter->data_sent) { in mwifiex_process_uap_event()
201 adapter->ps_state = PS_STATE_AWAKE; in mwifiex_process_uap_event()
202 adapter->pm_wakeup_card_req = false; in mwifiex_process_uap_event()
203 adapter->pm_wakeup_fw_try = false; in mwifiex_process_uap_event()
210 adapter->ps_state = in mwifiex_process_uap_event()
215 adapter->ps_state = PS_STATE_AWAKE; in mwifiex_process_uap_event()
216 adapter->pm_wakeup_card_req = false; in mwifiex_process_uap_event()
217 adapter->pm_wakeup_fw_try = false; in mwifiex_process_uap_event()
221 dev_dbg(adapter->dev, "event: Channel Report\n"); in mwifiex_process_uap_event()
222 mwifiex_11h_handle_chanrpt_ready(priv, adapter->event_skb); in mwifiex_process_uap_event()
225 dev_dbg(adapter->dev, "event: Radar detected\n"); in mwifiex_process_uap_event()
226 mwifiex_11h_handle_radar_detected(priv, adapter->event_skb); in mwifiex_process_uap_event()
229 dev_dbg(adapter->dev, "event: unknown event id: %#x\n", in mwifiex_process_uap_event()