From f750df3828ceb40ad7076fbe6221d010dbce51e3 Mon Sep 17 00:00:00 2001 From: Mukul Sharma Date: Fri, 30 Oct 2015 20:35:35 +0530 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_wmm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/hdd/src/wlan_hdd_wmm.c b/core/hdd/src/wlan_hdd_wmm.c index 0f5da4033e43..d25a71849eae 100644 --- a/core/hdd/src/wlan_hdd_wmm.c +++ b/core/hdd/src/wlan_hdd_wmm.c @@ -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. */