~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/net/wireless/ath/ath5k/base.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
        spinlock_t              lock;   /* lock on q and link */
87
87
        bool                    setup;
88
88
        int                     txq_len; /* number of queued buffers */
 
89
        int                     txq_max; /* max allowed num of queued buffers */
89
90
        bool                    txq_poll_mark;
90
91
        unsigned int            txq_stuck;      /* informational counter */
91
92
};
183
184
        enum nl80211_iftype     opmode;
184
185
        struct ath5k_hw         *ah;            /* Atheros HW */
185
186
 
186
 
        struct ieee80211_supported_band         *curband;
187
 
 
188
187
#ifdef CONFIG_ATH5K_DEBUG
189
188
        struct ath5k_dbg_info   debug;          /* debug info */
190
189
#endif /* CONFIG_ATH5K_DEBUG */
194
193
        dma_addr_t              desc_daddr;     /* DMA (physical) address */
195
194
        size_t                  desc_len;       /* size of TX/RX descriptors */
196
195
 
197
 
        DECLARE_BITMAP(status, 5);
 
196
        DECLARE_BITMAP(status, 6);
198
197
#define ATH_STAT_INVALID        0               /* disable hardware accesses */
199
198
#define ATH_STAT_MRRETRY        1               /* multi-rate retry support */
200
199
#define ATH_STAT_PROMISC        2
201
200
#define ATH_STAT_LEDSOFT        3               /* enable LED gpio status */
202
201
#define ATH_STAT_STARTED        4               /* opened & irqs enabled */
 
202
#define ATH_STAT_2G_DISABLED    5               /* multiband radio without 2G */
203
203
 
204
204
        unsigned int            filter_flags;   /* HW flags, AR5K_RX_FILTER_* */
205
 
        unsigned int            curmode;        /* current phy mode */
206
205
        struct ieee80211_channel *curchan;      /* current h/w channel */
207
206
 
208
207
        u16                     nvifs;
209
208
 
210
209
        enum ath5k_int          imask;          /* interrupt mask copy */
211
210
 
 
211
        spinlock_t              irqlock;
 
212
        bool                    rx_pending;     /* rx tasklet pending */
 
213
        bool                    tx_pending;     /* tx tasklet pending */
 
214
 
212
215
        u8                      lladdr[ETH_ALEN];
213
216
        u8                      bssidmask[ETH_ALEN];
214
217
 
262
265
        struct survey_info      survey;         /* collected survey info */
263
266
};
264
267
 
 
268
struct ath5k_vif_iter_data {
 
269
        const u8        *hw_macaddr;
 
270
        u8              mask[ETH_ALEN];
 
271
        u8              active_mac[ETH_ALEN]; /* first active MAC */
 
272
        bool            need_set_hw_addr;
 
273
        bool            found_active;
 
274
        bool            any_assoc;
 
275
        enum nl80211_iftype opmode;
 
276
        int n_stas;
 
277
};
 
278
void ath5k_vif_iter(void *data, u8 *mac, struct ieee80211_vif *vif);
 
279
 
 
280
 
265
281
#define ath5k_hw_hasbssidmask(_ah) \
266
282
        (ath5k_hw_get_capability(_ah, AR5K_CAP_BSSIDMASK, 0, NULL) == 0)
267
283
#define ath5k_hw_hasveol(_ah) \