diff options
author | Avinash Patil <patila@marvell.com> | 2015-01-28 05:24:21 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-01-29 03:22:04 -0500 |
commit | 85afb18621be393f925ed85f96a80d52e3706578 (patch) | |
tree | 25c21a44942447a0b05519b07b19b4c1d1f2eeae /drivers/net/wireless/mwifiex/main.h | |
parent | 2ade5667e2e0244549818f16e2520141661e8bcd (diff) |
mwifiex: add cfg80211 start_radar_detection handler
This patch adds support for cfg80211 start_radar_detection handler.
Upon reception of start_radar_detection, driver prepares radar detect
command to FW.
Delayed work is queued for CAC time which sends radar detection finished
event to cfg80211.
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Qingshui Gao <gaoqs@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/mwifiex/main.h')
-rw-r--r-- | drivers/net/wireless/mwifiex/main.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/main.h b/drivers/net/wireless/mwifiex/main.h index c5ac20da273c..e266d99ac2b2 100644 --- a/drivers/net/wireless/mwifiex/main.h +++ b/drivers/net/wireless/mwifiex/main.h | |||
@@ -588,6 +588,9 @@ struct mwifiex_private { | |||
588 | spinlock_t ack_status_lock; | 588 | spinlock_t ack_status_lock; |
589 | /** rx histogram data */ | 589 | /** rx histogram data */ |
590 | struct mwifiex_histogram_data *hist_data; | 590 | struct mwifiex_histogram_data *hist_data; |
591 | struct cfg80211_chan_def dfs_chandef; | ||
592 | struct workqueue_struct *dfs_cac_workqueue; | ||
593 | struct delayed_work dfs_cac_work; | ||
591 | }; | 594 | }; |
592 | 595 | ||
593 | enum mwifiex_ba_status { | 596 | enum mwifiex_ba_status { |
@@ -754,6 +757,8 @@ struct mwifiex_adapter { | |||
754 | struct work_struct main_work; | 757 | struct work_struct main_work; |
755 | struct workqueue_struct *rx_workqueue; | 758 | struct workqueue_struct *rx_workqueue; |
756 | struct work_struct rx_work; | 759 | struct work_struct rx_work; |
760 | struct workqueue_struct *dfs_workqueue; | ||
761 | struct work_struct dfs_work; | ||
757 | bool rx_work_enabled; | 762 | bool rx_work_enabled; |
758 | bool rx_processing; | 763 | bool rx_processing; |
759 | bool delay_main_work; | 764 | bool delay_main_work; |
@@ -1376,6 +1381,9 @@ void mwifiex_check_auto_tdls(unsigned long context); | |||
1376 | void mwifiex_add_auto_tdls_peer(struct mwifiex_private *priv, const u8 *mac); | 1381 | void mwifiex_add_auto_tdls_peer(struct mwifiex_private *priv, const u8 *mac); |
1377 | void mwifiex_setup_auto_tdls_timer(struct mwifiex_private *priv); | 1382 | void mwifiex_setup_auto_tdls_timer(struct mwifiex_private *priv); |
1378 | void mwifiex_clean_auto_tdls(struct mwifiex_private *priv); | 1383 | void mwifiex_clean_auto_tdls(struct mwifiex_private *priv); |
1384 | int mwifiex_cmd_issue_chan_report_request(struct mwifiex_private *priv, | ||
1385 | struct host_cmd_ds_command *cmd, | ||
1386 | void *data_buf); | ||
1379 | 1387 | ||
1380 | void mwifiex_parse_tx_status_event(struct mwifiex_private *priv, | 1388 | void mwifiex_parse_tx_status_event(struct mwifiex_private *priv, |
1381 | void *event_body); | 1389 | void *event_body); |
@@ -1383,6 +1391,8 @@ void mwifiex_parse_tx_status_event(struct mwifiex_private *priv, | |||
1383 | struct sk_buff * | 1391 | struct sk_buff * |
1384 | mwifiex_clone_skb_for_tx_status(struct mwifiex_private *priv, | 1392 | mwifiex_clone_skb_for_tx_status(struct mwifiex_private *priv, |
1385 | struct sk_buff *skb, u8 flag, u64 *cookie); | 1393 | struct sk_buff *skb, u8 flag, u64 *cookie); |
1394 | void mwifiex_dfs_cac_work_queue(struct work_struct *work); | ||
1395 | void mwifiex_abort_cac(struct mwifiex_private *priv); | ||
1386 | 1396 | ||
1387 | void mwifiex_hist_data_set(struct mwifiex_private *priv, u8 rx_rate, s8 snr, | 1397 | void mwifiex_hist_data_set(struct mwifiex_private *priv, u8 rx_rate, s8 snr, |
1388 | s8 nflr); | 1398 | s8 nflr); |