diff options
Diffstat (limited to 'net/mac80211/main.c')
| -rw-r--r-- | net/mac80211/main.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 4c2702f128f3..29b9d57df1a3 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
| @@ -1048,21 +1048,15 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) | |||
| 1048 | } | 1048 | } |
| 1049 | } | 1049 | } |
| 1050 | 1050 | ||
| 1051 | /* Enable Extended Key IDs when driver allowed it, or when it | 1051 | /* Mac80211 and therefore all drivers using SW crypto only |
| 1052 | * supports neither HW crypto nor A-MPDUs | 1052 | * are able to handle PTK rekeys and Extended Key ID. |
| 1053 | */ | 1053 | */ |
| 1054 | if ((!local->ops->set_key && | 1054 | if (!local->ops->set_key) { |
| 1055 | !ieee80211_hw_check(hw, AMPDU_AGGREGATION)) || | ||
| 1056 | ieee80211_hw_check(&local->hw, EXT_KEY_ID_NATIVE)) | ||
| 1057 | wiphy_ext_feature_set(local->hw.wiphy, | ||
| 1058 | NL80211_EXT_FEATURE_EXT_KEY_ID); | ||
| 1059 | |||
| 1060 | /* Mac80211 and therefore all cards only using SW crypto are able to | ||
| 1061 | * handle PTK rekeys correctly | ||
| 1062 | */ | ||
| 1063 | if (!local->ops->set_key) | ||
| 1064 | wiphy_ext_feature_set(local->hw.wiphy, | 1055 | wiphy_ext_feature_set(local->hw.wiphy, |
| 1065 | NL80211_EXT_FEATURE_CAN_REPLACE_PTK0); | 1056 | NL80211_EXT_FEATURE_CAN_REPLACE_PTK0); |
| 1057 | wiphy_ext_feature_set(local->hw.wiphy, | ||
| 1058 | NL80211_EXT_FEATURE_EXT_KEY_ID); | ||
| 1059 | } | ||
| 1066 | 1060 | ||
| 1067 | /* | 1061 | /* |
| 1068 | * Calculate scan IE length -- we need this to alloc | 1062 | * Calculate scan IE length -- we need this to alloc |
