mac80211: set mesh formation field properly
authorJacob Minshall <jacob@cozybit.com>
Wed, 29 May 2013 21:32:36 +0000 (14:32 -0700)
committerChristian Lamparter <chunkeey@googlemail.com>
Wed, 23 Oct 2013 21:00:18 +0000 (23:00 +0200)
Cap max peerings at 63 in accordance with IEEE-2012 8.4.2.100.7.
Triggers a beacon regeneration every time the number of peerings changes.
Previously this would only happen if the "accepting peerings" bit changed.

Signed-off-by: Jacob Minshall <jacob@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/linux/ieee80211.h

index a334caffc4a0510e3d709dee3681c00c152fe228..27833d96633611df6f8f06490fa8586195f9530f 100644 (file)
@@ -143,6 +143,7 @@ static inline u16 ieee80211_sn_sub(u16 sn1, u16 sn2)
 #define IEEE80211_MAX_RTS_THRESHOLD    2353
 #define IEEE80211_MAX_AID              2007
 #define IEEE80211_MAX_TIM_LEN          251
+#define IEEE80211_MAX_MESH_PEERINGS    63
 /* Maximum size for the MA-UNITDATA primitive, 802.11 standard section
    6.2.1.1.2.