* [PATCH] mac80211: remove unused don't-encrypt flag
@ 2010-08-12 13:37 Johannes Berg
0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2010-08-12 13:37 UTC (permalink / raw)
To: John Linville; +Cc: linux-wireless, Jouni Malinen
From: Johannes Berg <johannes.berg@intel.com>
When MFP is disabled, action frames will not
be encrypted since they are management frames
and the only management frames that can then
be encrypted are authentication frames.
Therefore, setting the don't-encrypt flag on
action frames is unnecessary.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
net/mac80211/cfg.c | 2 --
1 file changed, 2 deletions(-)
--- wireless-testing.orig/net/mac80211/cfg.c 2010-08-12 13:42:52.000000000 +0200
+++ wireless-testing/net/mac80211/cfg.c 2010-08-12 13:42:54.000000000 +0200
@@ -1575,8 +1575,6 @@ static int ieee80211_action(struct wiphy
return -ENOLINK;
break;
case NL80211_IFTYPE_STATION:
- if (!(sdata->u.mgd.flags & IEEE80211_STA_MFP_ENABLED))
- flags |= IEEE80211_TX_INTFL_DONT_ENCRYPT;
break;
default:
return -EOPNOTSUPP;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-08-12 13:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-12 13:37 [PATCH] mac80211: remove unused don't-encrypt flag Johannes Berg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.