From b315218e7aa5eb7fb2f79589c078bd51e59008ac Mon Sep 17 00:00:00 2001 From: Mukul Sharma Date: Fri, 30 Oct 2015 20:47:30 +0530 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_wmm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/hdd/src/wlan_hdd_wmm.c b/core/hdd/src/wlan_hdd_wmm.c index cdc1863ff40e..0f5da4033e43 100644 --- a/core/hdd/src/wlan_hdd_wmm.c +++ b/core/hdd/src/wlan_hdd_wmm.c @@ -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_context_t *pHddCtx = WLAN_HDD_GET_CTX(pAdapter); 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) { /* Get the user priority from IP header & corresponding AC */