Quellcode durchsuchen

qcacld-3.0: use the correct sta_ctx to retrieve the peer phy mode

Because of recent changes channel bandwidth and operating freq
are retrieved with two different sta_ctx.

update the sta_ctx for link properly to retrieve the proper information.

Change-Id: If7a045d4b9b41ccd50cb9200f38902847b014571
CRs-Fixed: 3524324
Arun Kumar Khandavalli vor 1 Jahr
Ursprung
Commit
1ee580eabf
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      core/hdd/src/wlan_hdd_cfg80211.c

+ 1 - 0
core/hdd/src/wlan_hdd_cfg80211.c

@@ -26995,6 +26995,7 @@ static int __wlan_hdd_cfg80211_get_channel(struct wiphy *wiphy,
 			wlan_key_put_link_vdev(vdev, WLAN_OSIF_ID);
 			return -EBUSY;
 		}
+		sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(link_info);
 	}
 
 	chan_freq = vdev->vdev_mlme.des_chan->ch_freq;