cfg80211: do not replace BSS structs
Johannes Berg
maintainerPATCH 1/1 cfg80211: do not replace BSS structs
Instead, allocate extra IE memory if necessary. Normally, this isn't even necessary since there's enough space.
This is a better way of correcting the "held BSS can disappear" issue, but also a lot more code. It is also necessary for proper auth/assoc BSS handling in the future.
Signed-off-by Johannes Berg <[email protected]>
---
John, you could roll this into one commit with the bandaid I posted before, and if you think it's appropriate both can go into .30. But the bandaid is sufficient for .30.
net/wireless/core.h | 2 +- net/wireless/scan.c | 42 +++++++++++++++++++++++++++++++++--------- 2 files changed, 34 insertions(+), 10 deletions(-)
net/wireless/core.h +1 -1
@@ -86,7 +86,7 @@ struct cfg80211_internal_bss {struct rb_node rbn;unsigned long ts;struct kref ref; -bool hold; +bool hold, ies_allocated;/* must be last because of priv member */ struct cfg80211_bss pub;
net/wireless/scan.c +33 -9
60 lines not on this page · raw message