diff options
author | Johannes Berg <johannes.berg@intel.com> | 2011-06-22 16:43:48 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-06-27 21:09:39 +0200 |
commit | 8ee3108075c9e9e2701493a245a754b8b0db8e57 (patch) | |
tree | 0aca6192c6c79618ca97daebf33413708698e589 /drivers/net/wireless | |
parent | wireless: unify QoS control field definitions (diff) | |
download | linux-8ee3108075c9e9e2701493a245a754b8b0db8e57.tar.xz linux-8ee3108075c9e9e2701493a245a754b8b0db8e57.zip |
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>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 7e1fa9671277..031cd89b1768 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -1130,6 +1130,8 @@ static int mac80211_hwsim_hw_scan(struct ieee80211_hw *hw, for (i = 0; i < req->n_channels; i++) printk(KERN_DEBUG "hwsim hw_scan freq %d\n", req->channels[i]->center_freq); + print_hex_dump(KERN_DEBUG, "scan IEs: ", DUMP_PREFIX_OFFSET, + 16, 1, req->ie, req->ie_len, 1); ieee80211_queue_delayed_work(hw, &hsd->w, 2 * HZ); |