Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3394facd authored by Ramanasarvesh Sadula's avatar Ramanasarvesh Sadula
Browse files

wlan: Migrate to 4.14 kernel API ieee80211_get_channel

Migrate to 4.14 kernel API i.e. ieee80211_get_channel
for retrieve channel

Change-Id: Id21de4914d21879a92e02dd5f48e0c82e2e3222a
CRs-Fixed: 2693149
parent 5cbf9dae
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -14429,7 +14429,11 @@ static struct cfg80211_bss* wlan_hdd_cfg80211_inform_bss(
    freq = ieee80211_channel_to_frequency(chan_no);
#endif
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
    chan = ieee80211_get_channel(wiphy, freq);
#else
    chan = __ieee80211_get_channel(wiphy, freq);
#endif
    if (!chan) {
       hddLog(VOS_TRACE_LEVEL_ERROR, "%s chan pointer is NULL", __func__);
@@ -14602,7 +14606,13 @@ wlan_hdd_cfg80211_inform_bss_frame( hdd_adapter_t *pAdapter,
#else
    freq = ieee80211_channel_to_frequency(chan_no);
#endif
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
    chan = ieee80211_get_channel(wiphy, freq);
#else
    chan = __ieee80211_get_channel(wiphy, freq);
#endif
    /*when the band is changed on the fly using the GUI, three things are done
     * 1. scan abort 2.flush scan results from cache 3.update the band with the new band user specified(refer to the hdd_setBand_helper function)
     * as part of the scan abort, message willbe queued to PE and we proceed with flushing and changinh the band.
+4 −0
Original line number Diff line number Diff line
@@ -1097,7 +1097,11 @@ static VOS_STATUS hdd_chan_change_notify(hdd_adapter_t *hostapd_adapter,

   freq = vos_chan_to_freq(oper_chan);

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
   chan = ieee80211_get_channel(hostapd_adapter->wdev.wiphy, freq);
#else
   chan = __ieee80211_get_channel(hostapd_adapter->wdev.wiphy, freq);
#endif

   if (!chan) {
       VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR,