Files
linux-legacy/net/mac80211
Christian Lamparter d57854bb1d minstrel: fix warning if lowest supported rate index is not 0
This patch fixes the following WARNING (caused by rix_to_ndx): "
>WARNING: at net/mac80211/rc80211_minstrel.c:69 minstrel_rate_init+0xd2/0x33a [mac80211]()
>[...]
>Call Trace:
> warn_on_slowpath+0x51/0x75
> _format_mac_addr+0x4c/0x88
> minstrel_rate_init+0xd2/0x33a [mac80211]
> print_mac+0x16/0x1b
> schedule_hrtimeout_range+0xdc/0x107
> ieee80211_add_station+0x158/0x1bd [mac80211]
> nl80211_new_station+0x1b3/0x20b [cfg80211]

The reason is that I'm experimenting with "g" only mode on a 802.11 b/g card.

Therefore rate_lowest_index returns 4 (= 6Mbit, instead of usual 0 = 1Mbit).
Since mi->r array is initialized with zeros in minstrel_alloc_sta,
rix_to_ndx has a hard time to find the 6Mbit entry and will trigged the WARNING.

Signed-off-by: Christian Lamparter <chunkeey@web.de>
Acked-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2009-01-12 14:24:55 -05:00
..
…
2008-12-19 15:22:54 -05:00
2008-04-08 16:44:45 -04:00
2008-04-08 16:44:45 -04:00
2008-12-19 15:24:00 -05:00
2008-12-19 15:24:00 -05:00
2008-10-31 19:00:37 -04:00
2008-09-11 15:53:39 -04:00
2008-12-19 15:24:00 -05:00
2008-12-19 15:23:59 -05:00
2008-10-31 18:05:59 -04:00
2008-12-19 15:24:00 -05:00
2008-10-31 19:02:14 -04:00
2008-09-15 16:48:22 -04:00
2008-10-31 18:05:59 -04:00
2008-03-06 15:30:46 -05:00