diff options
Diffstat (limited to 'drivers/net/wireless/ath9k/beacon.c')
-rw-r--r-- | drivers/net/wireless/ath9k/beacon.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath9k/beacon.c b/drivers/net/wireless/ath9k/beacon.c index 5b2752b43be4..eb4759fc6a0d 100644 --- a/drivers/net/wireless/ath9k/beacon.c +++ b/drivers/net/wireless/ath9k/beacon.c | |||
@@ -59,7 +59,7 @@ static int ath_beaconq_config(struct ath_softc *sc) | |||
59 | static void ath_beacon_setup(struct ath_softc *sc, struct ath_vif *avp, | 59 | static void ath_beacon_setup(struct ath_softc *sc, struct ath_vif *avp, |
60 | struct ath_buf *bf) | 60 | struct ath_buf *bf) |
61 | { | 61 | { |
62 | struct sk_buff *skb = (struct sk_buff *)bf->bf_mpdu; | 62 | struct sk_buff *skb = bf->bf_mpdu; |
63 | struct ath_hw *ah = sc->sc_ah; | 63 | struct ath_hw *ah = sc->sc_ah; |
64 | struct ath_desc *ds; | 64 | struct ath_desc *ds; |
65 | struct ath9k_11n_rate_series series[4]; | 65 | struct ath9k_11n_rate_series series[4]; |
@@ -138,7 +138,7 @@ static struct ath_buf *ath_beacon_generate(struct ieee80211_hw *hw, | |||
138 | /* Release the old beacon first */ | 138 | /* Release the old beacon first */ |
139 | 139 | ||
140 | bf = avp->av_bcbuf; | 140 | bf = avp->av_bcbuf; |
141 | skb = (struct sk_buff *)bf->bf_mpdu; | 141 | skb = bf->bf_mpdu; |
142 | if (skb) { | 142 | if (skb) { |
143 | dma_unmap_single(sc->dev, bf->bf_dmacontext, | 143 | dma_unmap_single(sc->dev, bf->bf_dmacontext, |
144 | skb->len, DMA_TO_DEVICE); | 144 | skb->len, DMA_TO_DEVICE); |
@@ -226,7 +226,7 @@ static void ath_beacon_start_adhoc(struct ath_softc *sc, | |||
226 | return; | 226 | return; |
227 | 227 | ||
228 | bf = avp->av_bcbuf; | 228 | bf = avp->av_bcbuf; |
229 | skb = (struct sk_buff *) bf->bf_mpdu; | 229 | skb = bf->bf_mpdu; |
230 | 230 | ||
231 | ath_beacon_setup(sc, avp, bf); | 231 | ath_beacon_setup(sc, avp, bf); |
232 | 232 | ||
@@ -299,7 +299,7 @@ int ath_beacon_alloc(struct ath_wiphy *aphy, struct ieee80211_vif *vif) | |||
299 | /* release the previous beacon frame, if it already exists. */ | 299 | /* release the previous beacon frame, if it already exists. */ |
300 | bf = avp->av_bcbuf; | 300 | bf = avp->av_bcbuf; |
301 | if (bf->bf_mpdu != NULL) { | 301 | if (bf->bf_mpdu != NULL) { |
302 | skb = (struct sk_buff *)bf->bf_mpdu; | 302 | skb = bf->bf_mpdu; |
303 | dma_unmap_single(sc->dev, bf->bf_dmacontext, | 303 | dma_unmap_single(sc->dev, bf->bf_dmacontext, |
304 | skb->len, DMA_TO_DEVICE); | 304 | skb->len, DMA_TO_DEVICE); |
305 | dev_kfree_skb_any(skb); | 305 | dev_kfree_skb_any(skb); |
@@ -371,7 +371,7 @@ void ath_beacon_return(struct ath_softc *sc, struct ath_vif *avp) | |||
371 | 371 | ||
372 | bf = avp->av_bcbuf; | 372 | bf = avp->av_bcbuf; |
373 | if (bf->bf_mpdu != NULL) { | 373 | if (bf->bf_mpdu != NULL) { |
374 | struct sk_buff *skb = (struct sk_buff *)bf->bf_mpdu; | 374 | struct sk_buff *skb = bf->bf_mpdu; |
375 | dma_unmap_single(sc->dev, bf->bf_dmacontext, | 375 | dma_unmap_single(sc->dev, bf->bf_dmacontext, |
376 | skb->len, DMA_TO_DEVICE); | 376 | skb->len, DMA_TO_DEVICE); |
377 | dev_kfree_skb_any(skb); | 377 | dev_kfree_skb_any(skb); |