提交 93c75786 编写于 作者: S Simon Wunderlich 提交者: Johannes Berg

mac80211: fix off-by-one regression in ibss beacon generation

There is an off-by-one error in the beacon generation for the ibss mode,
falsely a rate the extended supported rates which was already added to
supported rates, messing up the beacon. This was introduced by commit
"mac80211: select and adjust bitrates according to channel mode".
Signed-off-by: NSimon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 2ec9c1f6
...@@ -168,8 +168,10 @@ static void __ieee80211_sta_join_ibss(struct ieee80211_sub_if_data *sdata, ...@@ -168,8 +168,10 @@ static void __ieee80211_sta_join_ibss(struct ieee80211_sub_if_data *sdata,
if (basic_rates & BIT(ri)) if (basic_rates & BIT(ri))
basic = 0x80; basic = 0x80;
*pos++ = basic | (u8) rate; *pos++ = basic | (u8) rate;
if (++rates_added == 8) if (++rates_added == 8) {
ri++; /* continue at next rate for EXT_SUPP_RATES */
break; break;
}
} }
if (sband->band == IEEE80211_BAND_2GHZ) { if (sband->band == IEEE80211_BAND_2GHZ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册