summaryrefslogtreecommitdiffstats
path: root/sys/dev/ral/rt2860.c
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2014-02-17 01:36:53 +0000
committerkevlo <kevlo@FreeBSD.org>2014-02-17 01:36:53 +0000
commitecbaab7887ad759827a12115b1111cfa50a6f092 (patch)
tree1919e764c93c5049f1d8a0091180676c061a19d8 /sys/dev/ral/rt2860.c
parent4bb58e4f5d8dbf6ff38d1652c421414f9dae8cf4 (diff)
downloadFreeBSD-src-ecbaab7887ad759827a12115b1111cfa50a6f092.zip
FreeBSD-src-ecbaab7887ad759827a12115b1111cfa50a6f092.tar.gz
MFC r260444:
Rename definition of IEEE80211_FC1_WEP to IEEE80211_FC1_PROTECTED. The origin of WEP comes from IEEE Std 802.11-1997 where it defines whether the frame body of MAC frame has been encrypted using WEP algorithm or not. IEEE Std. 802.11-2007 changes WEP to Protected Frame, indicates whether the frame is protected by a cryptographic encapsulation algorithm. Reviewed by: adrian, rpaulo
Diffstat (limited to 'sys/dev/ral/rt2860.c')
-rw-r--r--sys/dev/ral/rt2860.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ral/rt2860.c b/sys/dev/ral/rt2860.c
index 3bdd01d..b5b0e0a 100644
--- a/sys/dev/ral/rt2860.c
+++ b/sys/dev/ral/rt2860.c
@@ -1284,9 +1284,9 @@ rt2860_rx_intr(struct rt2860_softc *sc)
wh = mtod(m, struct ieee80211_frame *);
#ifdef HW_CRYPTO
- if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
+ if (wh->i_fc[1] & IEEE80211_FC1_PROTECTED) {
/* frame is decrypted by hardware */
- wh->i_fc[1] &= ~IEEE80211_FC1_WEP;
+ wh->i_fc[1] &= ~IEEE80211_FC1_PROTECTED;
}
#endif
@@ -1492,7 +1492,7 @@ rt2860_tx(struct rt2860_softc *sc, struct mbuf *m, struct ieee80211_node *ni)
wh = mtod(m, struct ieee80211_frame *);
- if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
+ if (wh->i_fc[1] & IEEE80211_FC1_PROTECTED) {
k = ieee80211_crypto_encap(ni, m);
if (k == NULL) {
m_freem(m);
OpenPOWER on IntegriCloud