qcacld-3.0: Don't process TX frame in unauthenticated state

qcacld-2.0 to qcacld-3.0 propagation

Process TX frame only when STA state is in Connected state
otherwise drop the frame.

Change-Id: Id384bb4a11bc2783b8017a8b4fac67ba4f708cb5
CRs-Fixed: 778274
This commit is contained in:
Hanumantha Reddy Pothula
2015-06-23 17:14:08 +05:30
committed by Satish Singh
parent 7d21f88ad1
commit 966b57bcce

View File

@@ -347,6 +347,16 @@ int hdd_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
return NETDEV_TX_OK; return NETDEV_TX_OK;
} }
} else { } else {
if (eConnectionState_Associated !=
pHddStaCtx->conn_info.connState) {
CDF_TRACE(CDF_MODULE_ID_HDD_DATA, CDF_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]; STAId = pHddStaCtx->conn_info.staId[0];
} }