cfg80211: validate AID of stations being added
commit51b50fbeb574f581c0b112e035541f42fa3e604a
authorJohannes Berg <johannes@sipsolutions.net>
Sun, 24 May 2009 14:42:30 +0000 (24 16:42 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 3 Jun 2009 18:05:10 +0000 (3 14:05 -0400)
tree2e2b75a4863b7d9d9b8bcdd3cf56be66414d83bb
parent6b347bff145f9a8a0972ca8fc3c44dd1f91b0f16
cfg80211: validate AID of stations being added

We have some validation code in mac80211 but said code will
force an invalid AID to 0 which isn't a valid AID either;
instead require a valid AID (1-2007) to be passed in from
userspace in cfg80211 already. Also move the code before
the race comment since it can only be executed during STA
addition and thus is not racy.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/cfg.c
net/wireless/nl80211.c