diff options
| -rw-r--r-- | core/hdd/src/wlan_hdd_assoc.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c index cc0ef6b03eee..cf4175ce6e56 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -2007,6 +2007,8 @@ static void hdd_send_re_assoc_event(struct net_device *dev, uint8_t *final_req_ie = NULL; tCsrRoamConnectedProfile roam_profile; tHalHandle hal_handle = WLAN_HDD_GET_HAL_CTX(pAdapter); + int chan_no; + int freq; qdf_mem_zero(&roam_profile, sizeof(roam_profile)); @@ -2059,8 +2061,15 @@ static void hdd_send_re_assoc_event(struct net_device *dev, qdf_mem_copy(rspRsnIe, pFTAssocRsp, len); qdf_mem_zero(rspRsnIe + len, IW_GENERIC_IE_MAX - len); - chan = ieee80211_get_channel(pAdapter->wdev.wiphy, - (int)pCsrRoamInfo->pBssDesc->channelId); + chan_no = pCsrRoamInfo->pBssDesc->channelId; + if (chan_no <= 14) + freq = ieee80211_channel_to_frequency(chan_no, + NL80211_BAND_2GHZ); + else + freq = ieee80211_channel_to_frequency(chan_no, + NL80211_BAND_5GHZ); + chan = ieee80211_get_channel(pAdapter->wdev.wiphy, freq); + sme_roam_get_connect_profile(hal_handle, pAdapter->sessionId, &roam_profile); |
