Prechádzať zdrojové kódy

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
Mukul Sharma 9 rokov pred
rodič
commit
b315218e7a
1 zmenil súbory, kde vykonal 7 pridanie a 0 odobranie
  1. 7 0
      core/hdd/src/wlan_hdd_wmm.c

+ 7 - 0
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 */