diff options
Diffstat (limited to 'net/mac80211/key.c')
-rw-r--r-- | net/mac80211/key.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/mac80211/key.c b/net/mac80211/key.c index b10e33deb63e..dd6fc4aa3ff5 100644 --- a/net/mac80211/key.c +++ b/net/mac80211/key.c | |||
@@ -73,8 +73,6 @@ static void ieee80211_key_enable_hw_accel(struct ieee80211_key *key) | |||
73 | key->sdata->dev->dev_addr, addr, | 73 | key->sdata->dev->dev_addr, addr, |
74 | &key->conf); | 74 | &key->conf); |
75 | 75 | ||
76 | WARN_ON(!ret && (key->conf.hw_key_idx == HW_KEY_IDX_INVALID)); | ||
77 | |||
78 | if (!ret) | 76 | if (!ret) |
79 | key->flags |= KEY_FLAG_UPLOADED_TO_HARDWARE; | 77 | key->flags |= KEY_FLAG_UPLOADED_TO_HARDWARE; |
80 | 78 | ||
@@ -109,7 +107,6 @@ static void ieee80211_key_disable_hw_accel(struct ieee80211_key *key) | |||
109 | key->conf.keyidx, MAC_ARG(addr), ret); | 107 | key->conf.keyidx, MAC_ARG(addr), ret); |
110 | 108 | ||
111 | key->flags &= ~KEY_FLAG_UPLOADED_TO_HARDWARE; | 109 | key->flags &= ~KEY_FLAG_UPLOADED_TO_HARDWARE; |
112 | key->conf.hw_key_idx = HW_KEY_IDX_INVALID; | ||
113 | } | 110 | } |
114 | 111 | ||
115 | struct ieee80211_key *ieee80211_key_alloc(struct ieee80211_sub_if_data *sdata, | 112 | struct ieee80211_key *ieee80211_key_alloc(struct ieee80211_sub_if_data *sdata, |
@@ -132,7 +129,6 @@ struct ieee80211_key *ieee80211_key_alloc(struct ieee80211_sub_if_data *sdata, | |||
132 | * Default to software encryption; we'll later upload the | 129 | * Default to software encryption; we'll later upload the |
133 | * key to the hardware if possible. | 130 | * key to the hardware if possible. |
134 | */ | 131 | */ |
135 | key->conf.hw_key_idx = HW_KEY_IDX_INVALID; | ||
136 | key->conf.flags = 0; | 132 | key->conf.flags = 0; |
137 | key->flags = 0; | 133 | key->flags = 0; |
138 | 134 | ||