ath9k.h (03ab3da3b215bac4ebb093c808d54596e03e3225) ath9k.h (fbbcd14690d3c42b664740d58a22af50a77d5689)
1/*
2 * Copyright (c) 2008-2011 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 311 unchanged lines hidden (view full) ---

320 struct ath_rx_edma rx_edma[ATH9K_RX_QUEUE_MAX];
321
322 struct ath_rxbuf *buf_hold;
323 struct sk_buff *frag;
324
325 u32 ampdu_ref;
326};
327
1/*
2 * Copyright (c) 2008-2011 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 311 unchanged lines hidden (view full) ---

320 struct ath_rx_edma rx_edma[ATH9K_RX_QUEUE_MAX];
321
322 struct ath_rxbuf *buf_hold;
323 struct sk_buff *frag;
324
325 u32 ampdu_ref;
326};
327
328struct ath_chanctx {
329 struct cfg80211_chan_def chandef;
330 struct list_head vifs;
331 bool offchannel;
332};
333
334void ath_chanctx_init(struct ath_softc *sc);
335int ath_chanctx_set_channel(struct ath_softc *sc, struct ath_chanctx *ctx,
336 struct cfg80211_chan_def *chandef);
337int ath_reset_internal(struct ath_softc *sc, struct ath9k_channel *hchan);
328int ath_startrecv(struct ath_softc *sc);
329bool ath_stoprecv(struct ath_softc *sc);
330u32 ath_calcrxfilter(struct ath_softc *sc);
331int ath_rx_init(struct ath_softc *sc, int nbufs);
332void ath_rx_cleanup(struct ath_softc *sc);
333int ath_rx_tasklet(struct ath_softc *sc, int flush, bool hp);
334struct ath_txq *ath_txq_setup(struct ath_softc *sc, int qtype, int subtype);
335void ath_txq_lock(struct ath_softc *sc, struct ath_txq *txq);

--- 29 unchanged lines hidden (view full) ---

365 enum ieee80211_frame_release_type reason,
366 bool more_data);
367
368/********/
369/* VIFs */
370/********/
371
372struct ath_vif {
338int ath_startrecv(struct ath_softc *sc);
339bool ath_stoprecv(struct ath_softc *sc);
340u32 ath_calcrxfilter(struct ath_softc *sc);
341int ath_rx_init(struct ath_softc *sc, int nbufs);
342void ath_rx_cleanup(struct ath_softc *sc);
343int ath_rx_tasklet(struct ath_softc *sc, int flush, bool hp);
344struct ath_txq *ath_txq_setup(struct ath_softc *sc, int qtype, int subtype);
345void ath_txq_lock(struct ath_softc *sc, struct ath_txq *txq);

--- 29 unchanged lines hidden (view full) ---

375 enum ieee80211_frame_release_type reason,
376 bool more_data);
377
378/********/
379/* VIFs */
380/********/
381
382struct ath_vif {
383 struct list_head list;
384
373 struct ieee80211_vif *vif;
374 struct ath_node mcast_node;
375 int av_bslot;
376 bool primary_sta_vif;
377 __le64 tsf_adjust; /* TSF adjustment for staggered beacons */
378 struct ath_buf *av_bcbuf;
385 struct ieee80211_vif *vif;
386 struct ath_node mcast_node;
387 int av_bslot;
388 bool primary_sta_vif;
389 __le64 tsf_adjust; /* TSF adjustment for staggered beacons */
390 struct ath_buf *av_bcbuf;
391 struct ath_chanctx *chanctx;
379
380 /* P2P Client */
381 struct ieee80211_noa_data noa;
382};
383
384struct ath9k_vif_iter_data {
385 u8 hw_macaddr[ETH_ALEN]; /* address of the first vif */
386 u8 mask[ETH_ALEN]; /* bssid mask */

--- 310 unchanged lines hidden (view full) ---

697/* Powersave flags */
698#define PS_WAIT_FOR_BEACON BIT(0)
699#define PS_WAIT_FOR_CAB BIT(1)
700#define PS_WAIT_FOR_PSPOLL_DATA BIT(2)
701#define PS_WAIT_FOR_TX_ACK BIT(3)
702#define PS_BEACON_SYNC BIT(4)
703#define PS_WAIT_FOR_ANI BIT(5)
704
392
393 /* P2P Client */
394 struct ieee80211_noa_data noa;
395};
396
397struct ath9k_vif_iter_data {
398 u8 hw_macaddr[ETH_ALEN]; /* address of the first vif */
399 u8 mask[ETH_ALEN]; /* bssid mask */

--- 310 unchanged lines hidden (view full) ---

710/* Powersave flags */
711#define PS_WAIT_FOR_BEACON BIT(0)
712#define PS_WAIT_FOR_CAB BIT(1)
713#define PS_WAIT_FOR_PSPOLL_DATA BIT(2)
714#define PS_WAIT_FOR_TX_ACK BIT(3)
715#define PS_BEACON_SYNC BIT(4)
716#define PS_WAIT_FOR_ANI BIT(5)
717
718#define ATH9K_NUM_CHANCTX 2 /* supports 2 operating channels */
719
705struct ath_softc {
706 struct ieee80211_hw *hw;
707 struct device *dev;
708
709 struct survey_info *cur_survey;
710 struct survey_info survey[ATH9K_NUM_CHANNELS];
711
712 struct tasklet_struct intr_tq;

--- 25 unchanged lines hidden (view full) ---

738 short nvifs;
739 unsigned long ps_usecount;
740
741 struct ath_config config;
742 struct ath_rx rx;
743 struct ath_tx tx;
744 struct ath_beacon beacon;
745
720struct ath_softc {
721 struct ieee80211_hw *hw;
722 struct device *dev;
723
724 struct survey_info *cur_survey;
725 struct survey_info survey[ATH9K_NUM_CHANNELS];
726
727 struct tasklet_struct intr_tq;

--- 25 unchanged lines hidden (view full) ---

753 short nvifs;
754 unsigned long ps_usecount;
755
756 struct ath_config config;
757 struct ath_rx rx;
758 struct ath_tx tx;
759 struct ath_beacon beacon;
760
761 struct ath_chanctx chanctx[ATH9K_NUM_CHANCTX];
762 struct ath_chanctx *cur_chan;
763
746#ifdef CONFIG_MAC80211_LEDS
747 bool led_registered;
748 char led_name[32];
749 struct led_classdev led_cdev;
750#endif
751
752 struct ath9k_hw_cal_data caldata;
753

--- 97 unchanged lines hidden ---
764#ifdef CONFIG_MAC80211_LEDS
765 bool led_registered;
766 char led_name[32];
767 struct led_classdev led_cdev;
768#endif
769
770 struct ath9k_hw_cal_data caldata;
771

--- 97 unchanged lines hidden ---