]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8e434f5698c1eb60e9957cd13b0926b1abe942c2
tree70e7834e2bbadfa4b489e8522101dacfe3137a20
parentb047f41d56ffb6acbbf6b89981c35868a56899b3
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