Ver Fonte

qcacld-3.0: hdd_ctx is missing in hdd_connect_result

hdd_ctx in hdd_connect_result is missed when changing
Iaa1934594d5ffcf3b90dd2ad41bba4eb62f71119.

Change-Id: Ic07976f45e5b51a998b0f4cdd99f98c92a799475
CRs-Fixed: 2177707
Jingxiang Ge há 7 anos atrás
pai
commit
929c793dc1
1 ficheiros alterados com 2 adições e 3 exclusões
  1. 2 3
      core/hdd/src/wlan_hdd_main.c

+ 2 - 3
core/hdd/src/wlan_hdd_main.c

@@ -5521,9 +5521,7 @@ void hdd_connect_result(struct net_device *dev, const u8 *bssid,
 {
 	struct hdd_adapter *padapter = (struct hdd_adapter *) netdev_priv(dev);
 	struct cfg80211_bss *bss = NULL;
-	struct hdd_context *hdd_ctx;
-
-	hdd_ctx = WLAN_HDD_GET_CTX(padapter);
+	struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(padapter);
 
 	if (WLAN_STATUS_SUCCESS == status) {
 		struct ieee80211_channel *chan;
@@ -5564,6 +5562,7 @@ void hdd_connect_result(struct net_device *dev, const u8 *bssid,
 			tSirResultCodes timeout_reason)
 {
 	struct hdd_adapter *padapter = (struct hdd_adapter *) netdev_priv(dev);
+	struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(padapter);
 
 	cfg80211_connect_result(dev, bssid, req_ie, req_ie_len,
 				resp_ie, resp_ie_len, status, gfp);