From: Sven Neumann Date: Thu, 9 Dec 2010 14:05:24 +0000 (+0100) Subject: cfg80211: update information elements in cached BSS struct X-Git-Tag: v2.6.38-rc1~476^2~104^2~4^2~94 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01123e233193a544c85b622e1690f44532052c5b;p=pandora-kernel.git 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 Reviewed-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed