Skip to contentSkip to conversation

mac80211: remove unused don't-encrypt flag

PATCH New Johannes Berg 1 participant 1 message Aug 12, 2010 mac80211

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 mac80211: remove unused don't-encrypt flag

From: Johannes Berg <[email protected]>

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.

---
 net/mac80211/cfg.c |    2 --
 1 file changed, 2 deletions(-)
net/mac80211/cfg.c +0 -2
@@ -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;