Johannes Berg 69d464d593 mac80211: fix scan band off-by-one error
When checking for the next band to advance to, there
was an off-by-one error that could lead to an access
to an invalid array index. Additionally, the later
check for scan_band >= IEEE80211_NUM_BANDS is not
required since that will never be true.

This also improves the comments related to that code.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-02-29 15:19:32 -05:00
..
2007-11-02 08:47:06 +01:00
2007-05-05 11:46:38 -07:00
2008-02-05 14:35:47 -05:00
2007-10-10 16:53:16 -07:00
2007-10-10 16:53:16 -07:00
2008-01-28 14:59:53 -08:00
2008-02-29 15:19:17 -05:00
2008-02-29 15:19:17 -05:00
2008-01-28 14:59:53 -08:00
2007-10-10 16:53:14 -07:00