mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-30 00:47:38 +00:00
Fix kernel regression related to get channel function
This commit is contained in:
parent
632436b5c3
commit
993a7752cb
@ -5557,10 +5557,10 @@ static int cfg80211_rtw_get_channel(struct wiphy *wiphy, struct wireless_dev *wd
|
|||||||
bandWidth = adapter_to_dvobj(padapter)->oper_bwmode;
|
bandWidth = adapter_to_dvobj(padapter)->oper_bwmode;
|
||||||
//DBG_871X("%s bw %d\n", __func__,adapter_to_dvobj(padapter)->oper_bwmode);
|
//DBG_871X("%s bw %d\n", __func__,adapter_to_dvobj(padapter)->oper_bwmode);
|
||||||
} else {
|
} else {
|
||||||
bandWidth = pHalData->current_channel;
|
bandWidth = pHalData->current_channel_bw;
|
||||||
//DBG_871X("%s dvobj null\n", __func__);
|
//DBG_871X("%s dvobj null\n", __func__);
|
||||||
}
|
}
|
||||||
switch(pHalData->current_channel){
|
switch(pHalData->current_channel_bw){
|
||||||
case CHANNEL_WIDTH_20:
|
case CHANNEL_WIDTH_20:
|
||||||
//DBG_871X("%s width 20\n", __func__);
|
//DBG_871X("%s width 20\n", __func__);
|
||||||
width = NL80211_CHAN_WIDTH_20;
|
width = NL80211_CHAN_WIDTH_20;
|
||||||
|
Loading…
Reference in New Issue
Block a user