mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-27 23:54:24 +00:00
Fixed the _get_channel function, missing 2 cases
This commit is contained in:
parent
7360779d5a
commit
fc3c9149db
@ -5569,6 +5569,16 @@ static int cfg80211_rtw_get_channel(struct wiphy *wiphy, struct wireless_dev *wd
|
||||
//DBG_871X("%s dvobj null\n", __func__);
|
||||
}
|
||||
switch(pHalData->current_channel_bw){
|
||||
case CHANNEL_WIDTH_5:
|
||||
//DBG_871X("%s width 5\n", __func__);
|
||||
width = NL80211_CHAN_WIDTH_5;
|
||||
center_freq = control_freq;
|
||||
break;
|
||||
case CHANNEL_WIDTH_10:
|
||||
//DBG_871X("%s width 5\n", __func__);
|
||||
width = NL80211_CHAN_WIDTH_10;
|
||||
center_freq = control_freq;
|
||||
break;
|
||||
case CHANNEL_WIDTH_20:
|
||||
//DBG_871X("%s width 20\n", __func__);
|
||||
width = NL80211_CHAN_WIDTH_20;
|
||||
|
Loading…
Reference in New Issue
Block a user