Message ID | 1304438716-18800-1-git-send-email-mshajakhan@atheros.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
Mohammed Shafi Shajakhan <mshajakhan@...> writes: > > From: Mohammed Shafi Shajakhan <mshajakhan@...> > > The devices that require IV generation in software need tailroom > reservation for ICVs used in TKIP or WEP encryptions. > Currently, decision to skip the tailroom reservation in the tx > path was taken only on whether driver wants MMIC to be generated > in software or not. Following patch appends IV generation check for > such decisions and fixes the following warning. I have been testing the patch for the last two hours. I don't have anymore WARNINGs. Thanks, Fabio -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Wed, May 4, 2011 at 2:04 AM, Fabio Rossi <rossi.f@inwind.it> wrote: > Mohammed Shafi Shajakhan <mshajakhan@...> writes: > >> >> From: Mohammed Shafi Shajakhan <mshajakhan@...> >> >> The devices that require IV generation in software need tailroom >> reservation for ICVs used in TKIP or WEP encryptions. >> Currently, decision to skip the tailroom reservation in the tx >> path was taken only on whether driver wants MMIC to be generated >> in software or not. Following patch appends IV generation check for >> such decisions and fixes the following warning. > > I have been testing the patch for the last two hours. I don't have > anymore WARNINGs. thanks for testing, I will re-send it as a patch. > > Thanks, > Fabio > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-wireless" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/mac80211/key.c b/net/mac80211/key.c index ca3c626..0037905 100644 --- a/net/mac80211/key.c +++ b/net/mac80211/key.c @@ -102,7 +102,9 @@ static int ieee80211_key_enable_hw_accel(struct ieee80211_key *key) if (!ret) { key->flags |= KEY_FLAG_UPLOADED_TO_HARDWARE; - if (!(key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_MMIC)) + if (!((key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_MMIC) || + (key->conf.flags & + IEEE80211_KEY_FLAG_GENERATE_IV))) key->local->crypto_tx_tailroom_needed_cnt--; return 0; @@ -161,7 +163,9 @@ static void ieee80211_key_disable_hw_accel(struct ieee80211_key *key) key->flags &= ~KEY_FLAG_UPLOADED_TO_HARDWARE; - if (!(key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_MMIC)) + if (!((key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_MMIC) || + (key->conf.flags & + IEEE80211_KEY_FLAG_GENERATE_IV))) key->local->crypto_tx_tailroom_needed_cnt++; }