qcacld-3.0: Handle excessive logging during sta 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 appears excessively.
As a part of this fix sta select queue netdev ops need
to validate Hdd context to take care of SSR and load
/ unload cases.

Change-Id: I087f50ac9e59c3e181bde54f2041f9dda3177266
CRs-Fixed: 857429
This commit is contained in:
Mukul Sharma 2015-10-30 20:35:35 +05:30 • committed by Prakash Dhavali
commit f750df3828

View file

@ -1821,6 +1821,14 @@ uint16_t hdd_wmm_select_queue(struct net_device *dev, struct sk_buff *skb)
uint16_t queueIndex;
hdd_adapter_t *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
bool is_eapol = false;
hdd_context_t *hdd_ctx = WLAN_HDD_GET_CTX(pAdapter);
int status;
status = wlan_hdd_validate_context(hdd_ctx);
if (status != 0) {
skb->priority = SME_QOS_WMM_UP_BE;
return HDD_LINUX_AC_BE;
}
/* if we don't want QoS or the AP doesn't support Qos */
/* All traffic will get equal opportuniy to transmit data frames. */