cfg80211: update information elements in cached BSS struct
authorSven Neumann <s.neumann@raumfeld.com>
Thu, 9 Dec 2010 14:05:24 +0000 (15:05 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 13 Dec 2010 20:23:28 +0000 (15:23 -0500)
commit01123e233193a544c85b622e1690f44532052c5b
tree3632678a9441a2dce021f6a2ceada5de4e7e7e07
parent998d516d9546eba04dd99ae49a78acb0cf770478
cfg80211: update information elements in cached BSS struct

When a cached BSS struct is updated because a new beacon was received,
the code replaces the cached information elements by the IEs from the
new beacon. However it did not update the pub.information_elements
and pub.len_information_elements fields leaving them either pointing
to the old beacon IEs or in an inconsistent state where the data is
replaced by the new beacon IEs but len_information_elements still has
its value from the first beacon.

Fix this by updating the information elements fields if they are
pointing to beacon IEs.

Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/scan.c