From 61db9f6c5e75571e9676c1463ce6a708f8479e27 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Fri, 10 Aug 2018 18:26:15 +0200 Subject: [PATCH] Fix the get_channel function causing kernel regression --- dkms.conf | 2 +- os_dep/linux/ioctl_cfg80211.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dkms.conf b/dkms.conf index c632225..28209e2 100644 --- a/dkms.conf +++ b/dkms.conf @@ -1,5 +1,5 @@ PACKAGE_NAME="realtek-rtl88xxau" -PACKAGE_VERSION="5.2.20.2~20180808" +PACKAGE_VERSION="5.2.20.2~20180810" CLEAN="'make' clean" BUILT_MODULE_NAME[0]=88XXau PROCS_NUM=`nproc` diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index 806b0d8..f8b725f 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -4850,10 +4850,10 @@ static int cfg80211_rtw_get_channel(struct wiphy *wiphy, struct wireless_dev *wd bandWidth = adapter_to_dvobj(padapter)->oper_bwmode; //DBG_871X("%s bw %d\n", __func__,adapter_to_dvobj(padapter)->oper_bwmode); } else { - bandWidth = pHalData->current_channel; + bandWidth = pHalData->current_channel_bw; //DBG_871X("%s dvobj null\n", __func__); } - switch(pHalData->current_channel){ + switch(pHalData->current_channel_bw){ case CHANNEL_WIDTH_20: //DBG_871X("%s width 20\n", __func__); width = NL80211_CHAN_WIDTH_20;