aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mwl
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/mwl
parent14f4ecfafae0a9bbbdd0f60f8ce8605c61c1efd0 (diff)
Notes
Diffstat (limited to 'sys/dev/mwl')
-rw-r--r--sys/dev/mwl/if_mwl.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/mwl/if_mwl.c b/sys/dev/mwl/if_mwl.c
index 8a3aca80a9fd..67fba35bcf8b 100644
--- a/sys/dev/mwl/if_mwl.c
+++ b/sys/dev/mwl/if_mwl.c
@@ -2886,12 +2886,13 @@ mwl_rx_proc(void *arg, int npending)
* upper layer to put a station in power save
* (except when configured with MWL_HOST_PS_SUPPORT).
*/
- if (wh->i_fc[1] & IEEE80211_FC1_WEP)
+ if (wh->i_fc[1] & IEEE80211_FC1_PROTECTED)
m->m_flags |= M_WEP;
#ifdef MWL_HOST_PS_SUPPORT
- wh->i_fc[1] &= ~IEEE80211_FC1_WEP;
+ wh->i_fc[1] &= ~IEEE80211_FC1_PROTECTED;
#else
- wh->i_fc[1] &= ~(IEEE80211_FC1_WEP | IEEE80211_FC1_PWR_MGT);
+ wh->i_fc[1] &= ~(IEEE80211_FC1_PROTECTED |
+ IEEE80211_FC1_PWR_MGT);
#endif
if (ieee80211_radiotap_active(ic)) {
@@ -3205,7 +3206,7 @@ mwl_tx_start(struct mwl_softc *sc, struct ieee80211_node *ni, struct mwl_txbuf *
#endif
wh = mtod(m0, struct ieee80211_frame *);
- iswep = wh->i_fc[1] & IEEE80211_FC1_WEP;
+ iswep = wh->i_fc[1] & IEEE80211_FC1_PROTECTED;
ismcast = IEEE80211_IS_MULTICAST(wh->i_addr1);
hdrlen = ieee80211_anyhdrsize(wh);
copyhdrlen = hdrlen;