diff options
| author | Poddar, Siddarth <siddpodd@codeaurora.org> | 2017-03-16 19:20:09 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-03-17 12:21:08 -0700 |
| commit | bfe6f6f23521fddd8d13a33683da3060ff914cdb (patch) | |
| tree | 52314c4a7bd826c87fd75b19e6071f3f86de51e4 | |
| parent | dfaf54b5cc2c749c7f66a6477e4f9dabe73575c6 (diff) | |
qcacld-3.0: Drop the pkt if deauth is in progress
When SAP initiates deauth/diassoc for peer device, it sets
isDeauthInProgress flag. So, if host receives tx packets
for peer from network layer or ipa path while peer remove
is in progress, then drop the tx packets at hdd level
in __hdd_softap_hard_start_xmit based on above flag check.
CRs-Fixed: 2016092
Change-Id: I52c3bcd92478eb657bdd90d15eb13d1cd95ee090
| -rw-r--r-- | core/hdd/src/wlan_hdd_softap_tx_rx.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_softap_tx_rx.c b/core/hdd/src/wlan_hdd_softap_tx_rx.c index 601617afe310..09761ab4b487 100644 --- a/core/hdd/src/wlan_hdd_softap_tx_rx.c +++ b/core/hdd/src/wlan_hdd_softap_tx_rx.c @@ -319,6 +319,13 @@ static int __hdd_softap_hard_start_xmit(struct sk_buff *skb, "%s: STA %d is unregistered", __func__, STAId); goto drop_pkt; + } else if (true == pAdapter->aStaInfo[STAId]. + isDeauthInProgress) { + QDF_TRACE(QDF_MODULE_ID_HDD_SAP_DATA, + QDF_TRACE_LEVEL_WARN, + "%s: STA %d deauth in progress", __func__, + STAId); + goto drop_pkt; } if ((OL_TXRX_PEER_STATE_CONN != |
