qcacld-3.0: Handle excessive logging during hostap select queue

qcacld-2.0 to qcacld-3.0 propagation

As a part of unload hdd is stopping the netdev queue.
But still N/W layer 3 is calling the select queue netdev
ops, where error print for sap context is Null appears
excessively.
As a part of this fix hostap select queue need to validate
Hdd context to take care of SSR and load / unload cases.

Change-Id: Id6d93a3a83de7d95a283ff57b6fa2c44f08a9ee3
CRs-Fixed: 857220
This commit is contained in:
Mukul Sharma
2015-10-30 20:47:30 +05:30
committed by Prakash Dhavali
parent 10a00267d0
commit b315218e7a

View File

@@ -1786,6 +1786,13 @@ uint16_t hdd_hostapd_select_queue(struct net_device *dev, struct sk_buff *skb
hdd_adapter_t *pAdapter = (hdd_adapter_t *) netdev_priv(dev); hdd_adapter_t *pAdapter = (hdd_adapter_t *) netdev_priv(dev);
hdd_context_t *pHddCtx = WLAN_HDD_GET_CTX(pAdapter); hdd_context_t *pHddCtx = WLAN_HDD_GET_CTX(pAdapter);
bool is_eapol = false; bool is_eapol = false;
int status = 0;
status = wlan_hdd_validate_context(pHddCtx);
if (status != 0) {
skb->priority = SME_QOS_WMM_UP_BE;
return HDD_LINUX_AC_BE;
}
if (HDD_WMM_USER_MODE_NO_QOS != pHddCtx->config->WmmMode) { if (HDD_WMM_USER_MODE_NO_QOS != pHddCtx->config->WmmMode) {
/* Get the user priority from IP header & corresponding AC */ /* Get the user priority from IP header & corresponding AC */