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
diff --git a/core/hdd/src/wlan_hdd_wmm.c b/core/hdd/src/wlan_hdd_wmm.c
index 0f5da40..d25a718 100644
--- a/core/hdd/src/wlan_hdd_wmm.c
+++ b/core/hdd/src/wlan_hdd_wmm.c
@@ -1821,6 +1821,14 @@
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. */