diff options
| author | Hanumantha Reddy Pothula <c_hpothu@qti.qualcomm.com> | 2015-06-10 12:04:54 +0530 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2015-06-12 19:51:55 +0530 |
| commit | 7006fa8f7c7a899d18def2b361f7a4e4ffc3ed72 (patch) | |
| tree | 1eeef1c4b6541cda3adbabb660397fd1ae563619 | |
| parent | 3bbd01dd82296a60037588fd0664392d6d132a77 (diff) | |
qcacld-2.0: Don't process TX frame in unauthenticated state.
prima to qcacld-2.0 propagation
Process TX frame only when STA state is in Connected state
otherwise drop the frame.
Change-Id: Id384bb4a11bc2783b8017a8b4fac67ba4f708cb5
CRs-Fixed: 778274
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_tx_rx.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_tx_rx.c b/CORE/HDD/src/wlan_hdd_tx_rx.c index 855aacd47534..ab5e99a73ac9 100644 --- a/CORE/HDD/src/wlan_hdd_tx_rx.c +++ b/CORE/HDD/src/wlan_hdd_tx_rx.c @@ -847,6 +847,15 @@ int hdd_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) } else { + if (eConnectionState_Associated != pHddStaCtx->conn_info.connState) { + VOS_TRACE(VOS_MODULE_ID_HDD_DATA, VOS_TRACE_LEVEL_INFO, + FL("Tx frame in not associated state in %d context"), + pAdapter->device_mode); + ++pAdapter->stats.tx_dropped; + ++pAdapter->hdd_stats.hddTxRxStats.txXmitDropped; + kfree_skb(skb); + return NETDEV_TX_OK; + } STAId = pHddStaCtx->conn_info.staId[0]; } |
