]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: Use the correct IE buffer pointer
authorMichael Buesch <mb@bu3sch.de>
Sun, 26 Apr 2009 09:27:33 +0000 (11:27 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 May 2009 19:14:44 +0000 (15:14 -0400)
commitd3564e45f6164f3b03f38f54660a26c3dc3e6469
treeea78354841cd6c6ea74e9005343b1119eca6f7be
parent50ed60397c238d9b5b2134818190012cf49cd335
cfg80211: Use the correct IE buffer pointer

If the IE buffer was allocated, the pub.information_elements pointer
was also changed to the allocated space. So we must not assume anymore
that the pointer points at the "found" tail.

So if it was allocated previously, take the codebranch that grows the
buffer size (if necessary) and put the data into the allocated buffer.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/scan.c