From: Johannes Berg Date: Mon, 28 Jan 2008 16:08:56 +0000 (+0100) Subject: mac80211: fix scan band off-by-one error X-Git-Tag: v2.6.26-rc1~1138^2~530^2~115 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69d464d5938ca0f4fb3447b3e32872e0ca79efc1;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed