提交 50fcc8e2 编写于 作者: O openharmony_ci 提交者: Gitee

!58 fix 5GHz get rate faile

Merge pull request !58 from fangdong/master
......@@ -1090,7 +1090,7 @@ static struct hostapd_hw_modes *WifiWpaGetHwFeatureData(void *priv, uint16_t *nu
}
for (loop = 0; loop < (size_t)modes[index].num_rates; loop++) {
if (index <= DEFAULT_NUM_MODES) {
if (index < DEFAULT_NUM_MODES) {
modes[index].rates[loop] = hwFeatureData.bitrate[loop];
} else {
modes[index].rates[loop] = hwFeatureData.bitrate[loop + IEEE80211B_RATES_NUM];
......
......@@ -1090,7 +1090,7 @@ static struct hostapd_hw_modes *WifiWpaGetHwFeatureData(void *priv, uint16_t *nu
}
for (loop = 0; loop < (size_t)modes[index].num_rates; loop++) {
if (index <= DEFAULT_NUM_MODES) {
if (index < DEFAULT_NUM_MODES) {
modes[index].rates[loop] = hwFeatureData.bitrate[loop];
} else {
modes[index].rates[loop] = hwFeatureData.bitrate[loop + IEEE80211B_RATES_NUM];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册