Commit 5ec39efa authored by Avinash Patil's avatar Avinash Patil Committed by John W. Linville

mwifiex: process TX even when scan is ongoing

With channel scan gap, FW comes back to connected channel after each
single channel scan. So we can safely transfer data to FW during scan.
FW would send this data once on connected channel.
Signed-off-by: default avatarAvinash Patil <patila@marvell.com>
Signed-off-by: default avatarAmitkumar Karwar <akarwar@marvell.com>
Signed-off-by: default avatarCathy Luo <cluo@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 97010cf8
...@@ -284,8 +284,9 @@ int mwifiex_main_process(struct mwifiex_adapter *adapter) ...@@ -284,8 +284,9 @@ int mwifiex_main_process(struct mwifiex_adapter *adapter)
adapter->tx_lock_flag) adapter->tx_lock_flag)
break; break;
if ((adapter->scan_processing && if ((!adapter->scan_chan_gap_enabled &&
!adapter->scan_delay_cnt) || adapter->data_sent || !adapter->scan_delay_cnt &&
adapter->scan_processing) || adapter->data_sent ||
mwifiex_wmm_lists_empty(adapter)) { mwifiex_wmm_lists_empty(adapter)) {
if (adapter->cmd_sent || adapter->curr_cmd || if (adapter->cmd_sent || adapter->curr_cmd ||
(!is_command_pending(adapter))) (!is_command_pending(adapter)))
...@@ -339,7 +340,8 @@ int mwifiex_main_process(struct mwifiex_adapter *adapter) ...@@ -339,7 +340,8 @@ int mwifiex_main_process(struct mwifiex_adapter *adapter)
} }
} }
if ((!adapter->scan_processing || adapter->scan_delay_cnt) && if ((adapter->scan_chan_gap_enabled ||
(!adapter->scan_processing || adapter->scan_delay_cnt)) &&
!adapter->data_sent && !mwifiex_wmm_lists_empty(adapter)) { !adapter->data_sent && !mwifiex_wmm_lists_empty(adapter)) {
mwifiex_wmm_process_tx(adapter); mwifiex_wmm_process_tx(adapter);
if (adapter->hs_activated) { if (adapter->hs_activated) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment