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)
commitc604b9f219422e969fe371cc7259de34c3c5601d
tree01f8773dbdc25cc7d044b0e371acf3a763af1604
parentf94f8b168cf2e46da180bbba2afd626d7af0579d
mac80211: make ieee80211_build_preq_ies safer

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>
net/mac80211/ieee80211_i.h
net/mac80211/scan.c
net/mac80211/util.c
This page took 0.027148 seconds and 5 git commands to generate.