summaryrefslogtreecommitdiffstats
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
authorRui Paulo <rpaulo@gmail.com>2009-11-11 01:01:31 +0100
committerJohn W. Linville <linville@tuxdriver.com>2009-11-13 23:43:54 +0100
commit90a5e16992fa6105f7ebf3f29f5cf5feb1bbf7dc (patch)
treebe20480aca5f74c63371e7808e19ef7812a65204 /net/mac80211/util.c
parentrt2x00: Fix typo in rf programming of rt2800lib. (diff)
downloadlinux-90a5e16992fa6105f7ebf3f29f5cf5feb1bbf7dc.tar.xz
linux-90a5e16992fa6105f7ebf3f29f5cf5feb1bbf7dc.zip
mac80211: implement RANN processing and forwarding
Process the RANN (Root Annoucement) Frame and try to find the HWMP root station by sending a PREQ. Signed-off-by: Rui Paulo <rpaulo@gmail.com> Signed-off-by: Javier Cardona <javier@cozybit.com> Reviewed-by: Andrey Yurovsky <andrey@cozybit.com> Tested-by: Brian Cavagnolo <brian@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r--net/mac80211/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index aedbaaa067e6..da86e1592f8c 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -685,6 +685,10 @@ u32 ieee802_11_parse_elems_crc(u8 *start, size_t len,
elems->perr = pos;
elems->perr_len = elen;
break;
+ case WLAN_EID_RANN:
+ if (elen >= sizeof(struct ieee80211_rann_ie))
+ elems->rann = (void *)pos;
+ break;
case WLAN_EID_CHANNEL_SWITCH:
elems->ch_switch_elem = pos;
elems->ch_switch_elem_len = elen;