svn commit: r271249 - head/sys/dev/iwn
Adrian Chadd
adrian at FreeBSD.org
Mon Sep 8 07:16:01 UTC 2014
Author: adrian
Date: Mon Sep 8 07:16:00 2014
New Revision: 271249
URL: http://svnweb.freebsd.org/changeset/base/271249
Log:
Implement htprotmode handling.
This is separate to 11g protection - the default is to RTS protect
11n frames, including A-MPDU frames.
Tested:
* Intel 5100, STA mode
Modified:
head/sys/dev/iwn/if_iwn.c
Modified: head/sys/dev/iwn/if_iwn.c
==============================================================================
--- head/sys/dev/iwn/if_iwn.c Mon Sep 8 05:14:58 2014 (r271248)
+++ head/sys/dev/iwn/if_iwn.c Mon Sep 8 07:16:00 2014 (r271249)
@@ -4206,11 +4206,11 @@ iwn_check_rate_needs_protection(struct i
return (0);
/*
- * If it's an 11n rate, then for now we enable
- * protection.
+ * If it's an 11n rate - no protection.
+ * We'll do it via a specific 11n check.
*/
if (rate & IEEE80211_RATE_MCS) {
- return (1);
+ return (0);
}
/*
@@ -4440,6 +4440,9 @@ iwn_tx_data(struct iwn_softc *sc, struct
flags |= IWN_TX_NEED_CTS;
else if (ic->ic_protmode == IEEE80211_PROT_RTSCTS)
flags |= IWN_TX_NEED_RTS;
+ } else if ((rate & IEEE80211_RATE_MCS) &&
+ (ic->ic_htprotmode == IEEE80211_PROT_RTSCTS)) {
+ flags |= IWN_TX_NEED_RTS;
}
/* XXX HT protection? */
More information about the svn-src-all
mailing list