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: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
if (basic_rates & BIT(ri))
basic = 0x80;
*pos++ = basic | (u8) rate;
- if (++rates_added == 8)
+ if (++rates_added == 8) {
+ ri++; /* continue at next rate for EXT_SUPP_RATES */
break;
+ }
}
if (sband->band == IEEE80211_BAND_2GHZ) {