rsi: block/unblock data queues as per connection status

Data queues should be unblocked after station add notify frame
is sent and should be blocked after station delete notify is sent.

Signed-off-by: Prameela Rani Garnepudi <prameela.j04cs@gmail.com>
Signed-off-by: Amitkumar Karwar <amit.karwar@redpinesignals.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
Prameela Rani Garnepudi 2017-07-10 18:10:44 +05:30 committed by Kalle Valo
parent b3115e8a42
commit bcb283d27f
1 changed files with 5 additions and 0 deletions

View File

@ -1250,6 +1250,7 @@ void rsi_inform_bss_status(struct rsi_common *common,
u16 aid) u16 aid)
{ {
if (status) { if (status) {
common->hw_data_qs_blocked = true;
rsi_hal_send_sta_notify_frame(common, rsi_hal_send_sta_notify_frame(common,
RSI_IFTYPE_STATION, RSI_IFTYPE_STATION,
STA_CONNECTED, STA_CONNECTED,
@ -1258,13 +1259,17 @@ void rsi_inform_bss_status(struct rsi_common *common,
aid); aid);
if (common->min_rate == 0xffff) if (common->min_rate == 0xffff)
rsi_send_auto_rate_request(common); rsi_send_auto_rate_request(common);
if (!rsi_send_block_unblock_frame(common, false))
common->hw_data_qs_blocked = false;
} else { } else {
common->hw_data_qs_blocked = true;
rsi_hal_send_sta_notify_frame(common, rsi_hal_send_sta_notify_frame(common,
RSI_IFTYPE_STATION, RSI_IFTYPE_STATION,
STA_DISCONNECTED, STA_DISCONNECTED,
bssid, bssid,
qos_enable, qos_enable,
aid); aid);
rsi_send_block_unblock_frame(common, true);
} }
} }