]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: use for_each_element() for multi-bssid parsing
authorJohannes Berg <johannes.berg@intel.com>
Thu, 7 Feb 2019 21:36:33 +0000 (22:36 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 8 Feb 2019 12:51:50 +0000 (13:51 +0100)
commit1050e8a7ebdf48d6f5fddab80d703c086137ff3d
tree5b5afc6da8efa240c4fe0cc0c72b16ce1bcbdb41
parentb397b5577905ff60a909dc07a552edcf5abeb098
cfg80211: use for_each_element() for multi-bssid parsing

Use the new for_each_element() helper here, we cannot use
for_each_subelement() since we have a fixed 1 byte before
the subelements start.

While at it, also fix le16_to_cpup() to be get_unaligned_le16()
since we don't know anything about alignment.

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