mac80211: remove probe response temporary buffer allocation
Instead of allocating a temporary buffer to build IEs build them right into the SKB. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
c604b9f219
commit
b9a9ada14a
6 changed files with 25 additions and 30 deletions
|
@ -1347,9 +1347,14 @@ static void hw_scan_work(struct work_struct *work)
|
|||
hwsim->hw_scan_vif,
|
||||
req->ssids[i].ssid,
|
||||
req->ssids[i].ssid_len,
|
||||
req->ie, req->ie_len);
|
||||
req->ie_len);
|
||||
if (!probe)
|
||||
continue;
|
||||
|
||||
if (req->ie_len)
|
||||
memcpy(skb_put(probe, req->ie_len), req->ie,
|
||||
req->ie_len);
|
||||
|
||||
local_bh_disable();
|
||||
mac80211_hwsim_tx_frame(hwsim->hw, probe,
|
||||
hwsim->tmp_chan);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue