--- zzzz-none-000/linux-3.10.107/drivers/net/wireless/wl3501_cs.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/net/wireless/wl3501_cs.c 2021-02-04 17:41:59.000000000 +0000 @@ -29,7 +29,6 @@ #include #include -#include #include #include #include @@ -43,7 +42,7 @@ #include #include #include -#include +#include #include @@ -673,8 +672,7 @@ matchflag = 1; if (matchflag) { for (i = 0; i < this->bss_cnt; i++) { - if (!memcmp(this->bss_set[i].bssid, - sig.bssid, ETH_ALEN)) { + if (ether_addr_equal_unaligned(this->bss_set[i].bssid, sig.bssid)) { matchflag = 0; break; } @@ -1455,7 +1453,8 @@ { struct wl3501_card *this = netdev_priv(dev); - wrqu->freq.m = ieee80211_dsss_chan_to_freq(this->chan) * 100000; + wrqu->freq.m = 100000 * + ieee80211_channel_to_frequency(this->chan, IEEE80211_BAND_2GHZ); wrqu->freq.e = 1; return 0; }