Skip to contentSkip to conversation

cfg80211: do not replace BSS structs

PATCH New Johannes Berg 1 participant 1 message Apr 16, 2009 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 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.

---
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