1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-23 05:44:40 +00:00

Merge pull request #166 from kimocoder/v5.2.20

Fix the get_channel function causing kernel regression
This commit is contained in:
Christian B 2018-08-10 18:29:47 +02:00 committed by GitHub
commit 962a43db2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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`

View File

@ -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;