nl80211: validate some input better
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 27 Mar 2009 11:40:28 +0000 (12:40 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Apr 2009 20:54:27 +0000 (16:54 -0400)
commitf4a11bb0c2d5968ea35f95bdbabdd453862f202a
treeef0277c3e333ea3a402dbfbd6c13fa60a4b9702b
parentb0741a1a2b00d9b4d88ba60016c88e42f176e4d6
nl80211: validate some input better

This patch changes nl80211 to:
 * validate that any IE input is a valid IE (stream)
 * move some validation code before locking
 * require that a reason code is given for both deauth/disassoc

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