summaryrefslogtreecommitdiffstats
path: root/net/mac80211/rx.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-01-28 17:08:56 +0100
committerJohn W. Linville <linville@tuxdriver.com>2008-02-29 15:19:32 -0500
commit69d464d5938ca0f4fb3447b3e32872e0ca79efc1 (patch)
tree6a04cac6d2f7ffaecbc9ef64fa0f5ffc6395910a /net/mac80211/rx.c
parentee688b000d35f413f33561ec9c7d3355be561e2f (diff)
downloadlinux-69d464d5938ca0f4fb3447b3e32872e0ca79efc1.tar.bz2
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>
Diffstat (limited to 'net/mac80211/rx.c')
0 files changed, 0 insertions, 0 deletions