]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - src/common/ieee802_11_common.c
WNM: Add advertisement of BSS max idle period
[thirdparty/hostap.git] / src / common / ieee802_11_common.c
index 5b2f2d56728c372b300bc90081958c0353907b7a..d65675cdec810de71fe357bddd7d28df5ebdb154 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * IEEE 802.11 Common routines
- * Copyright (c) 2002-2009, Jouni Malinen <j@w1.fi>
+ * Copyright (c) 2002-2012, Jouni Malinen <j@w1.fi>
  *
  * This software may be distributed under the terms of the BSD license.
  * See README for more details.
@@ -262,6 +262,15 @@ ParseRes ieee802_11_parse_elems(const u8 *start, size_t len,
                        elems->interworking = pos;
                        elems->interworking_len = elen;
                        break;
+               case WLAN_EID_EXT_CAPAB:
+                       elems->ext_capab = pos;
+                       elems->ext_capab_len = elen;
+                       break;
+               case WLAN_EID_BSS_MAX_IDLE_PERIOD:
+                       if (elen < 3)
+                               break;
+                       elems->bss_max_idle_period = pos;
+                       break;
                default:
                        unknown++;
                        if (!show_errors)