mac80211: clear sequence/fragment number in QoS-null frames
authorJohannes Berg <johannes.berg@intel.com>
Tue, 4 Mar 2014 12:46:53 +0000 (13:46 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 5 Mar 2014 14:49:54 +0000 (15:49 +0100)
commit864a6040f395464003af8dd0d8ca86fed19866d4
tree1cfbdad9ad7df012fbddac170402795f2c99ef12
parentbc00a91d627026f08abf69bf5d0015499dd30c2a
mac80211: clear sequence/fragment number in QoS-null frames

Avoid leaking data by sending uninitialized memory and setting an
invalid (non-zero) fragment number (the sequence number is ignored
anyway) by setting the seq_ctrl field to zero.

Cc: stable@vger.kernel.org
Fixes: 3f52b7e328c5 ("mac80211: mesh power save basics")
Fixes: ce662b44ce22 ("mac80211: send (QoS) Null if no buffered frames")
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_ps.c
net/mac80211/sta_info.c