mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-04 19:03:09 +02:00
57d7a45a01
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12939 3c298f89-4303-0410-b956-a3cf2f4a3e73
54 lines
1.7 KiB
Diff
54 lines
1.7 KiB
Diff
This patch removes the unnecessary ATH_STAT_MRRETRY flag and turns
|
|
other ATH_STAT_* defines into an enum
|
|
|
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
|
|
|
--- a/drivers/net/wireless/ath5k/base.c
|
|
+++ b/drivers/net/wireless/ath5k/base.c
|
|
@@ -724,19 +724,6 @@ ath5k_attach(struct pci_dev *pdev, struc
|
|
ATH5K_DBG(sc, ATH5K_DEBUG_ANY, "devid 0x%x\n", pdev->device);
|
|
|
|
/*
|
|
- * Check if the MAC has multi-rate retry support.
|
|
- * We do this by trying to setup a fake extended
|
|
- * descriptor. MAC's that don't have support will
|
|
- * return false w/o doing anything. MAC's that do
|
|
- * support it will return true w/o doing anything.
|
|
- */
|
|
- ret = ah->ah_setup_mrr_tx_desc(ah, NULL, 0, 0, 0, 0, 0, 0);
|
|
- if (ret < 0)
|
|
- goto err;
|
|
- if (ret > 0)
|
|
- __set_bit(ATH_STAT_MRRETRY, sc->status);
|
|
-
|
|
- /*
|
|
* Reset the key cache since some parts do not
|
|
* reset the contents on initial power up.
|
|
*/
|
|
--- a/drivers/net/wireless/ath5k/base.h
|
|
+++ b/drivers/net/wireless/ath5k/base.h
|
|
@@ -99,6 +99,12 @@ struct ath5k_led
|
|
#define ATH_CHAN_MAX (14+14+14+252+20)
|
|
#endif
|
|
|
|
+enum {
|
|
+ ATH_STAT_INVALID, /* disable hardware accesses */
|
|
+ ATH_STAT_PROMISC,
|
|
+ ATH_STAT_LEDSOFT /* enable LED gpio status */
|
|
+};
|
|
+
|
|
/* Software Carrier, keeps track of the driver state
|
|
* associated with an instance of a device */
|
|
struct ath5k_softc {
|
|
@@ -129,10 +135,6 @@ struct ath5k_softc {
|
|
u16 cachelsz; /* cache line size */
|
|
|
|
DECLARE_BITMAP(status, 4);
|
|
-#define ATH_STAT_INVALID 0 /* disable hardware accesses */
|
|
-#define ATH_STAT_MRRETRY 1 /* multi-rate retry support */
|
|
-#define ATH_STAT_PROMISC 2
|
|
-#define ATH_STAT_LEDSOFT 3 /* enable LED gpio status */
|
|
|
|
unsigned int filter_flags; /* HW flags, AR5K_RX_FILTER_* */
|
|
unsigned int curmode; /* current phy mode */
|