mac80211: make ieee80211_build_preq_ies safer
authorJohannes Berg <johannes.berg@intel.com>
Thu, 29 Nov 2012 11:45:18 +0000 (12:45 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 30 Nov 2012 12:41:26 +0000 (13:41 +0100)
Instead of assuming 200 bytes are always enough for
all the IEs we add, give the length of the buffer
to the function and warn instead of overrunning.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>

No differences found