From fc3c9149db71204014a8c03a83e5c8f219c5aaf0 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Fri, 15 Feb 2019 18:24:00 +0100 Subject: [PATCH] Fixed the _get_channel function, missing 2 cases --- os_dep/linux/ioctl_cfg80211.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index cfb2ed0..1027e5d 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -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;