cfg80211: fix the IE inheritance of extension IEs
authorSara Sharon <sara.sharon@intel.com>
Tue, 29 Jan 2019 12:00:58 +0000 (14:00 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 8 Feb 2019 12:56:37 +0000 (13:56 +0100)
commitc17fe043a3b79255c6cbe76aafb594849fac0005
tree70e7834e2bbadfa4b489e8522101dacfe3137a20
parentcaf56338c22f00098bf2acd646b0ddc691c80c24
cfg80211: fix the IE inheritance of extension IEs

Extension IEs have ID 255 followed by extension ID. Current
code is buggy in handling it in two ways:
1. When checking if IE is in the frame, it uses just the ID, which
   for extension elements is too broad.
2. It uses 0xFF to mark copied IEs, which will result in not copying
   extension IEs from the subelement.

Fix both issue.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/scan.c