mac80211: restrict advertised HW scan rates
authorJohannes Berg <johannes.berg@intel.com>
Wed, 22 Jun 2011 14:43:48 +0000 (16:43 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 27 Jun 2011 19:09:39 +0000 (15:09 -0400)
commit8ee3108075c9e9e2701493a245a754b8b0db8e57
tree0aca6192c6c79618ca97daebf33413708698e589
parent04b7dcf979d71e870683c804802e44287a802760
mac80211: restrict advertised HW scan rates

Advertise only user-requested bitrates in a HW scan.
Note that the hw_scan API doesn't currently have a
way of asking for a specific probe request bitrate,
so we might end up using a bitrate that we don't
advertise as supported. I'll fix that later.

Also add a hexdump printk to hwsim to verify this.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mac80211_hwsim.c
net/mac80211/scan.c