aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/recv.c
diff options
context:
space:
mode:
authorColin McCabe <colin@cozybit.com>2008-12-01 16:38:55 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-12-05 09:35:47 -0500
commitd97809dbbf1b8a6df79c82be75fa0cababec783b (patch)
treeeadd628167157a49384b7c7297ac3fbabd325863 /drivers/net/wireless/ath9k/recv.c
parent33fd8195529d74c0fe23cddd1c76fe7e03bbd324 (diff)
ath9k: Replace ath9k_opmode with nl80211_iftype
This patch kills ath9k's ath9k_opmode enum by replacing it with nl80211_iftype. Signed-off-by: Colin McCabe <colin@cozybit.com> Signed-off-by: Andrey Yurovsky <andrey@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/recv.c')
-rw-r--r--drivers/net/wireless/ath9k/recv.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/wireless/ath9k/recv.c b/drivers/net/wireless/ath9k/recv.c
index 0b9a3d9c5824..51e058710d17 100644
--- a/drivers/net/wireless/ath9k/recv.c
+++ b/drivers/net/wireless/ath9k/recv.c
@@ -165,7 +165,7 @@ static int ath_rx_prepare(struct sk_buff *skb, struct ath_desc *ds,
165 * discard the frame. Enable this if you want to see 165 * discard the frame. Enable this if you want to see
166 * error frames in Monitor mode. 166 * error frames in Monitor mode.
167 */ 167 */
168 if (sc->sc_ah->ah_opmode != ATH9K_M_MONITOR) 168 if (sc->sc_ah->ah_opmode != NL80211_IFTYPE_MONITOR)
169 goto rx_next; 169 goto rx_next;
170 } else if (ds->ds_rxstat.rs_status != 0) { 170 } else if (ds->ds_rxstat.rs_status != 0) {
171 if (ds->ds_rxstat.rs_status & ATH9K_RXERR_CRC) 171 if (ds->ds_rxstat.rs_status & ATH9K_RXERR_CRC)
@@ -191,7 +191,7 @@ static int ath_rx_prepare(struct sk_buff *skb, struct ath_desc *ds,
191 * decryption and MIC failures. For monitor mode, 191 * decryption and MIC failures. For monitor mode,
192 * we also ignore the CRC error. 192 * we also ignore the CRC error.
193 */ 193 */
194 if (sc->sc_ah->ah_opmode == ATH9K_M_MONITOR) { 194 if (sc->sc_ah->ah_opmode == NL80211_IFTYPE_MONITOR) {
195 if (ds->ds_rxstat.rs_status & 195 if (ds->ds_rxstat.rs_status &
196 ~(ATH9K_RXERR_DECRYPT | ATH9K_RXERR_MIC | 196 ~(ATH9K_RXERR_DECRYPT | ATH9K_RXERR_MIC |
197 ATH9K_RXERR_CRC)) 197 ATH9K_RXERR_CRC))
@@ -361,25 +361,25 @@ u32 ath_calcrxfilter(struct ath_softc *sc)
361 | ATH9K_RX_FILTER_MCAST; 361 | ATH9K_RX_FILTER_MCAST;
362 362
363 /* If not a STA, enable processing of Probe Requests */ 363 /* If not a STA, enable processing of Probe Requests */
364 if (sc->sc_ah->ah_opmode != ATH9K_M_STA) 364 if (sc->sc_ah->ah_opmode != NL80211_IFTYPE_STATION)
365 rfilt |= ATH9K_RX_FILTER_PROBEREQ; 365 rfilt |= ATH9K_RX_FILTER_PROBEREQ;
366 366
367 /* Can't set HOSTAP into promiscous mode */ 367 /* Can't set HOSTAP into promiscous mode */
368 if (((sc->sc_ah->ah_opmode != ATH9K_M_HOSTAP) && 368 if (((sc->sc_ah->ah_opmode != NL80211_IFTYPE_AP) &&
369 (sc->rx_filter & FIF_PROMISC_IN_BSS)) || 369 (sc->rx_filter & FIF_PROMISC_IN_BSS)) ||
370 (sc->sc_ah->ah_opmode == ATH9K_M_MONITOR)) { 370 (sc->sc_ah->ah_opmode == NL80211_IFTYPE_MONITOR)) {
371 rfilt |= ATH9K_RX_FILTER_PROM; 371 rfilt |= ATH9K_RX_FILTER_PROM;
372 /* ??? To prevent from sending ACK */ 372 /* ??? To prevent from sending ACK */
373 rfilt &= ~ATH9K_RX_FILTER_UCAST; 373 rfilt &= ~ATH9K_RX_FILTER_UCAST;
374 } 374 }
375 375
376 if (sc->sc_ah->ah_opmode == ATH9K_M_STA || 376 if (sc->sc_ah->ah_opmode == NL80211_IFTYPE_STATION ||
377 sc->sc_ah->ah_opmode == ATH9K_M_IBSS) 377 sc->sc_ah->ah_opmode == NL80211_IFTYPE_ADHOC)
378 rfilt |= ATH9K_RX_FILTER_BEACON; 378 rfilt |= ATH9K_RX_FILTER_BEACON;
379 379
380 /* If in HOSTAP mode, want to enable reception of PSPOLL frames 380 /* If in HOSTAP mode, want to enable reception of PSPOLL frames
381 & beacon frames */ 381 & beacon frames */
382 if (sc->sc_ah->ah_opmode == ATH9K_M_HOSTAP) 382 if (sc->sc_ah->ah_opmode == NL80211_IFTYPE_AP)
383 rfilt |= (ATH9K_RX_FILTER_BEACON | ATH9K_RX_FILTER_PSPOLL); 383 rfilt |= (ATH9K_RX_FILTER_BEACON | ATH9K_RX_FILTER_PSPOLL);
384 384
385 return rfilt; 385 return rfilt;