提交 116bacf4 编写于 作者: F fangdong

Description: fix 5GHz get channelNum faile

Feature or Bugfix:Bugfix
Binary Source: No
Signed-off-by: Nfangdong <fangdong7@huawei.com>
上级 50fcc8e2
......@@ -1070,7 +1070,7 @@ static struct hostapd_hw_modes *WifiWpaGetHwFeatureData(void *priv, uint16_t *nu
modes[0].ht_capab = hwFeatureData.htCapab;
iee80211band = IEEE80211_BAND_2GHZ;
for (index = 0; index < *numModes; index++) {
if (index > DEFAULT_NUM_MODES) {
if (index >= DEFAULT_NUM_MODES) {
iee80211band = IEEE80211_BAND_5GHZ;
}
modes[index].mode = modesData[index].mode;
......
......@@ -1070,7 +1070,7 @@ static struct hostapd_hw_modes *WifiWpaGetHwFeatureData(void *priv, uint16_t *nu
modes[0].ht_capab = hwFeatureData.htCapab;
iee80211band = IEEE80211_BAND_2GHZ;
for (index = 0; index < *numModes; index++) {
if (index > DEFAULT_NUM_MODES) {
if (index >= DEFAULT_NUM_MODES) {
iee80211band = IEEE80211_BAND_5GHZ;
}
modes[index].mode = modesData[index].mode;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册