cfg80211: Validate legacy rateset.
authorBala Shanmugam <bkamatch@qca.qualcomm.com>
Fri, 20 Apr 2012 13:42:58 +0000 (19:12 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 23 Apr 2012 19:37:41 +0000 (15:37 -0400)
commit218d2e26dceb241e4b253c5c4702ee1b38b715cc
tree3ae9e3da50fc6ed24ab12c2c6ea7d1e2516bef08
parent0d8a0a17288e419c2e5e9ce18c8b66b390eb7e23
cfg80211: Validate legacy rateset.

Legacy rates are not validated while configuring
tx rateset using iw. So below cmd is accepted by nl80211.
sudo iw wlan2 set bitrates legacy-2.4 1 2 3

Validate legacy rates and return
error if any rate in the rateset is not valid.

Signed-off-by: Bala Shanmugam <bkamatch@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/nl80211.c