aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/wlan/if_uath.c
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2014-01-08 08:06:56 +0000
committerKevin Lo <kevlo@FreeBSD.org>2014-01-08 08:06:56 +0000
commit5945b5f5abd64b943fd59e8bd264b84186883ed1 (patch)
tree97a468b7a7d2aca097f707aff8e8b253289d3b07 /sys/dev/usb/wlan/if_uath.c
parent14f4ecfafae0a9bbbdd0f60f8ce8605c61c1efd0 (diff)
downloadsrc-5945b5f5abd64b943fd59e8bd264b84186883ed1.tar.gz
src-5945b5f5abd64b943fd59e8bd264b84186883ed1.zip
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
Notes
Notes: svn path=/head/; revision=260444
Diffstat (limited to 'sys/dev/usb/wlan/if_uath.c')
-rw-r--r--sys/dev/usb/wlan/if_uath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/wlan/if_uath.c b/sys/dev/usb/wlan/if_uath.c
index 3645d180997f..9db1e04ce3de 100644
--- a/sys/dev/usb/wlan/if_uath.c
+++ b/sys/dev/usb/wlan/if_uath.c
@@ -1626,7 +1626,7 @@ uath_tx_start(struct uath_softc *sc, struct mbuf *m0, struct ieee80211_node *ni,
}
wh = mtod(m0, struct ieee80211_frame *);
- if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
+ if (wh->i_fc[1] & IEEE80211_FC1_PROTECTED) {
k = ieee80211_crypto_encap(ni, m0);
if (k == NULL) {
m_freem(m0);