diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-02-07 16:24:55 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-02-15 03:41:34 -0500 |
commit | bee7f58699a406a4210ba9e0367bae7ac666abd0 (patch) | |
tree | 9925ff46a41d09667fe797460b2d3ccb07fed4dd /net/mac80211/util.c | |
parent | 18942d3be0e0e67aa40550ce3266e48b51845d52 (diff) |
mac80211: handle operating mode notif in beacon/assoc response
In beacons and association response frames an AP may include an
operating mode notification element to advertise changes in the
number of spatial streams it can receive. Handle this using the
existing function that handles the action frame, but only handle
NSS changes, not bandwidth changes which aren't allowed here.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r-- | net/mac80211/util.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index b231bc2ed740..e24ff38606a9 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c | |||
@@ -787,6 +787,12 @@ u32 ieee802_11_parse_elems_crc(u8 *start, size_t len, | |||
787 | else | 787 | else |
788 | elem_parse_failed = true; | 788 | elem_parse_failed = true; |
789 | break; | 789 | break; |
790 | case WLAN_EID_OPMODE_NOTIF: | ||
791 | if (elen > 0) | ||
792 | elems->opmode_notif = pos; | ||
793 | else | ||
794 | elem_parse_failed = true; | ||
795 | break; | ||
790 | case WLAN_EID_MESH_ID: | 796 | case WLAN_EID_MESH_ID: |
791 | elems->mesh_id = pos; | 797 | elems->mesh_id = pos; |
792 | elems->mesh_id_len = elen; | 798 | elems->mesh_id_len = elen; |