linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [mac80211] Enforce protected check for unicast robust management frames.
@ 2014-08-11 18:51 chaitanya.mgit
  2014-08-13 11:21 ` Krishna Chaitanya
  2014-08-22  9:14 ` Jouni Malinen
  0 siblings, 2 replies; 5+ messages in thread
From: chaitanya.mgit @ 2014-08-11 18:51 UTC (permalink / raw)
  To: johannes; +Cc: linux-wireless, Chaitanya T K

From: Chaitanya T K <chaitanya.mgit@gmail.com>

Enforce the check for protected field for all unicast 
robust management frames. 

Signed-off-by: Chaitanya T K <chaitanya.mgit@gmail.com>
---

This removed the dependency on the driver to check for protected
bit, especially for those drivers who believed the API :-).

---

 net/mac80211/rx.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index a8d862f..63e8f3d 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -569,6 +569,9 @@ static int ieee80211_is_unicast_robust_mgmt_frame(struct sk_buff *skb)
 	if (is_multicast_ether_addr(hdr->addr1))
 		return 0;
 
+	if (!ieee80211_has_protected(hdr->frame_control))
+		return 0;
+
 	return ieee80211_is_robust_mgmt_frame(skb);
 }
 

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-08-25  8:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-11 18:51 [mac80211] Enforce protected check for unicast robust management frames chaitanya.mgit
2014-08-13 11:21 ` Krishna Chaitanya
2014-08-22  9:14 ` Jouni Malinen
2014-08-23 15:32   ` Krishna Chaitanya
2014-08-25  8:24     ` Krishna Chaitanya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).