Lines Matching refs:priv
24 void mwifiex_init_11h_params(struct mwifiex_private *priv) in mwifiex_init_11h_params() argument
26 priv->state_11h.is_11h_enabled = true; in mwifiex_init_11h_params()
27 priv->state_11h.is_11h_active = false; in mwifiex_init_11h_params()
30 inline int mwifiex_is_11h_active(struct mwifiex_private *priv) in mwifiex_is_11h_active() argument
32 return priv->state_11h.is_11h_active; in mwifiex_is_11h_active()
38 mwifiex_11h_process_infra_join(struct mwifiex_private *priv, u8 **buffer, in mwifiex_11h_process_infra_join() argument
52 sband = priv->wdev.wiphy->bands[radio_type]; in mwifiex_11h_process_infra_join()
82 int mwifiex_11h_activate(struct mwifiex_private *priv, bool flag) in mwifiex_11h_activate() argument
87 if ((GET_BSS_ROLE(priv) == MWIFIEX_BSS_ROLE_UAP) && enable) in mwifiex_11h_activate()
90 return mwifiex_send_cmd(priv, HostCmd_CMD_802_11_SNMP_MIB, in mwifiex_11h_activate()
100 void mwifiex_11h_process_join(struct mwifiex_private *priv, u8 **buffer, in mwifiex_11h_process_join() argument
107 mwifiex_11h_activate(priv, true); in mwifiex_11h_process_join()
108 priv->state_11h.is_11h_active = true; in mwifiex_11h_process_join()
110 mwifiex_11h_process_infra_join(priv, buffer, bss_desc); in mwifiex_11h_process_join()
113 mwifiex_11h_activate(priv, false); in mwifiex_11h_process_join()
114 priv->state_11h.is_11h_active = false; in mwifiex_11h_process_join()
128 struct mwifiex_private *priv = in mwifiex_dfs_cac_work_queue() local
132 if (WARN_ON(!priv)) in mwifiex_dfs_cac_work_queue()
135 chandef = priv->dfs_chandef; in mwifiex_dfs_cac_work_queue()
136 if (priv->wdev.cac_started) { in mwifiex_dfs_cac_work_queue()
137 mwifiex_dbg(priv->adapter, MSG, in mwifiex_dfs_cac_work_queue()
139 cfg80211_cac_event(priv->netdev, &chandef, in mwifiex_dfs_cac_work_queue()
148 int mwifiex_cmd_issue_chan_report_request(struct mwifiex_private *priv, in mwifiex_cmd_issue_chan_report_request() argument
165 mwifiex_dbg(priv->adapter, MSG, in mwifiex_cmd_issue_chan_report_request()
169 mwifiex_dbg(priv->adapter, MSG, "cancelling CAC\n"); in mwifiex_cmd_issue_chan_report_request()
174 int mwifiex_stop_radar_detection(struct mwifiex_private *priv, in mwifiex_stop_radar_detection() argument
183 return mwifiex_send_cmd(priv, HostCmd_CMD_CHAN_REPORT_REQUEST, in mwifiex_stop_radar_detection()
190 void mwifiex_abort_cac(struct mwifiex_private *priv) in mwifiex_abort_cac() argument
192 if (priv->wdev.cac_started) { in mwifiex_abort_cac()
193 if (mwifiex_stop_radar_detection(priv, &priv->dfs_chandef)) in mwifiex_abort_cac()
194 mwifiex_dbg(priv->adapter, ERROR, in mwifiex_abort_cac()
196 mwifiex_dbg(priv->adapter, MSG, in mwifiex_abort_cac()
198 cancel_delayed_work_sync(&priv->dfs_cac_work); in mwifiex_abort_cac()
199 cfg80211_cac_event(priv->netdev, &priv->dfs_chandef, in mwifiex_abort_cac()
208 int mwifiex_11h_handle_chanrpt_ready(struct mwifiex_private *priv, in mwifiex_11h_handle_chanrpt_ready() argument
221 mwifiex_dbg(priv->adapter, ERROR, in mwifiex_11h_handle_chanrpt_ready()
235 mwifiex_dbg(priv->adapter, MSG, in mwifiex_11h_handle_chanrpt_ready()
237 priv->dfs_chandef.chan->hw_value); in mwifiex_11h_handle_chanrpt_ready()
238 cancel_delayed_work_sync(&priv->dfs_cac_work); in mwifiex_11h_handle_chanrpt_ready()
239 cfg80211_cac_event(priv->netdev, in mwifiex_11h_handle_chanrpt_ready()
240 &priv->dfs_chandef, in mwifiex_11h_handle_chanrpt_ready()
257 int mwifiex_11h_handle_radar_detected(struct mwifiex_private *priv, in mwifiex_11h_handle_radar_detected() argument
265 mwifiex_dbg(priv->adapter, MSG, in mwifiex_11h_handle_radar_detected()
267 if (mwifiex_stop_radar_detection(priv, &priv->dfs_chandef)) in mwifiex_11h_handle_radar_detected()
268 mwifiex_dbg(priv->adapter, ERROR, in mwifiex_11h_handle_radar_detected()
270 cfg80211_radar_event(priv->adapter->wiphy, &priv->dfs_chandef, in mwifiex_11h_handle_radar_detected()
272 mwifiex_dbg(priv->adapter, MSG, "regdomain: %d\n", in mwifiex_11h_handle_radar_detected()
274 mwifiex_dbg(priv->adapter, MSG, "radar detection type: %d\n", in mwifiex_11h_handle_radar_detected()
277 mwifiex_dbg(priv->adapter, MSG, in mwifiex_11h_handle_radar_detected()
294 struct mwifiex_private *priv = in mwifiex_dfs_chan_sw_work_queue() local
298 if (WARN_ON(!priv)) in mwifiex_dfs_chan_sw_work_queue()
301 bss_cfg = &priv->bss_cfg; in mwifiex_dfs_chan_sw_work_queue()
303 mwifiex_dbg(priv->adapter, ERROR, in mwifiex_dfs_chan_sw_work_queue()
308 mwifiex_uap_set_channel(priv, bss_cfg, priv->dfs_chandef); in mwifiex_dfs_chan_sw_work_queue()
310 if (mwifiex_config_start_uap(priv, bss_cfg)) { in mwifiex_dfs_chan_sw_work_queue()
311 mwifiex_dbg(priv->adapter, ERROR, in mwifiex_dfs_chan_sw_work_queue()
316 mwifiex_dbg(priv->adapter, MSG, in mwifiex_dfs_chan_sw_work_queue()
318 cfg80211_ch_switch_notify(priv->netdev, &priv->dfs_chandef); in mwifiex_dfs_chan_sw_work_queue()