aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/recv.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath9k/recv.c')
-rw-r--r--drivers/net/wireless/ath9k/recv.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath9k/recv.c b/drivers/net/wireless/ath9k/recv.c
index 69dd5e206270..e8e4a32037f9 100644
--- a/drivers/net/wireless/ath9k/recv.c
+++ b/drivers/net/wireless/ath9k/recv.c
@@ -97,11 +97,11 @@ static struct sk_buff *ath_rxbuf_alloc(struct ath_softc *sc, u32 len)
97 * Unfortunately this means we may get 8 KB here from the 97 * Unfortunately this means we may get 8 KB here from the
98 * kernel... and that is actually what is observed on some 98 * kernel... and that is actually what is observed on some
99 * systems :( */ 99 * systems :( */
100 skb = dev_alloc_skb(len + sc->sc_cachelsz - 1); 100 skb = dev_alloc_skb(len + sc->cachelsz - 1);
101 if (skb != NULL) { 101 if (skb != NULL) {
102 off = ((unsigned long) skb->data) % sc->sc_cachelsz; 102 off = ((unsigned long) skb->data) % sc->cachelsz;
103 if (off != 0) 103 if (off != 0)
104 skb_reserve(skb, sc->sc_cachelsz - off); 104 skb_reserve(skb, sc->cachelsz - off);
105 } else { 105 } else {
106 DPRINTF(sc, ATH_DBG_FATAL, 106 DPRINTF(sc, ATH_DBG_FATAL,
107 "skbuff alloc of size %u failed\n", len); 107 "skbuff alloc of size %u failed\n", len);
@@ -210,7 +210,7 @@ static int ath_rx_prepare(struct sk_buff *skb, struct ath_desc *ds,
210 rx_status->mactime = ath_extend_tsf(sc, ds->ds_rxstat.rs_tstamp); 210 rx_status->mactime = ath_extend_tsf(sc, ds->ds_rxstat.rs_tstamp);
211 rx_status->band = sc->hw->conf.channel->band; 211 rx_status->band = sc->hw->conf.channel->band;
212 rx_status->freq = sc->hw->conf.channel->center_freq; 212 rx_status->freq = sc->hw->conf.channel->center_freq;
213 rx_status->noise = sc->sc_ani.sc_noise_floor; 213 rx_status->noise = sc->ani.noise_floor;
214 rx_status->signal = rx_status->noise + ds->ds_rxstat.rs_rssi; 214 rx_status->signal = rx_status->noise + ds->ds_rxstat.rs_rssi;
215 rx_status->antenna = ds->ds_rxstat.rs_antenna; 215 rx_status->antenna = ds->ds_rxstat.rs_antenna;
216 216
@@ -242,13 +242,13 @@ static void ath_opmode_init(struct ath_softc *sc)
242 242
243 /* configure bssid mask */ 243 /* configure bssid mask */
244 if (ah->ah_caps.hw_caps & ATH9K_HW_CAP_BSSIDMASK) 244 if (ah->ah_caps.hw_caps & ATH9K_HW_CAP_BSSIDMASK)
245 ath9k_hw_setbssidmask(ah, sc->sc_bssidmask); 245 ath9k_hw_setbssidmask(ah, sc->bssidmask);
246 246
247 /* configure operational mode */ 247 /* configure operational mode */
248 ath9k_hw_setopmode(ah); 248 ath9k_hw_setopmode(ah);
249 249
250 /* Handle any link-level address change. */ 250 /* Handle any link-level address change. */
251 ath9k_hw_setmac(ah, sc->sc_myaddr); 251 ath9k_hw_setmac(ah, sc->macaddr);
252 252
253 /* calculate and install multicast filter */ 253 /* calculate and install multicast filter */
254 mfilt[0] = mfilt[1] = ~0; 254 mfilt[0] = mfilt[1] = ~0;
@@ -267,11 +267,11 @@ int ath_rx_init(struct ath_softc *sc, int nbufs)
267 spin_lock_init(&sc->rx.rxbuflock); 267 spin_lock_init(&sc->rx.rxbuflock);
268 268
269 sc->rx.bufsize = roundup(IEEE80211_MAX_MPDU_LEN, 269 sc->rx.bufsize = roundup(IEEE80211_MAX_MPDU_LEN,
270 min(sc->sc_cachelsz, 270 min(sc->cachelsz,
271 (u16)64)); 271 (u16)64));
272 272
273 DPRINTF(sc, ATH_DBG_CONFIG, "cachelsz %u rxbufsize %u\n", 273 DPRINTF(sc, ATH_DBG_CONFIG, "cachelsz %u rxbufsize %u\n",
274 sc->sc_cachelsz, sc->rx.bufsize); 274 sc->cachelsz, sc->rx.bufsize);
275 275
276 /* Initialize rx descriptors */ 276 /* Initialize rx descriptors */
277 277
@@ -593,7 +593,7 @@ int ath_rx_tasklet(struct ath_softc *sc, int flush)
593 && !decrypt_error && skb->len >= hdrlen + 4) { 593 && !decrypt_error && skb->len >= hdrlen + 4) {
594 keyix = skb->data[hdrlen + 3] >> 6; 594 keyix = skb->data[hdrlen + 3] >> 6;
595 595
596 if (test_bit(keyix, sc->sc_keymap)) 596 if (test_bit(keyix, sc->keymap))
597 rx_status.flag |= RX_FLAG_DECRYPTED; 597 rx_status.flag |= RX_FLAG_DECRYPTED;
598 } 598 }
599 if (ah->sw_mgmt_crypto && 599 if (ah->sw_mgmt_crypto &&