Skip to contentSkip to conversation

ath5k: don't reset mcast filter when configuring the mode

PATCH New Bob Copeland 2 participants 4 messages Nov 9, 2009 Atheros ATH5K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 ath5k: don't reset mcast filter when configuring the mode

We should not zero out the multicast hash when configuring the operating mode, since a zero value means all multicast frames will get dropped. Also, ath5k_mode_setup() gets called after any reset, so the hash already set up in configure_filter() is lost.

---
 drivers/net/wireless/ath/ath5k/base.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/net/wireless/ath/ath5k/base.c +0 -1
index 07c1e52..cb3dc89 100644
@@ -1146,7 +1146,6 @@ ath5k_mode_setup(struct ath5k_softc *sc)
 	/* configure operational mode */
 	ath5k_hw_set_opmode(ah);
 
-	ath5k_hw_set_mcast_filter(ah, 0, 0);
 	ATH5K_DBG(sc, ATH5K_DEBUG_MODE, "RX filter 0x%x\n", rfilt);
 }
 
Signature · 1 line
1.6.2.5
#1 lore raw

PATCH 2/3 ath5k: add LED support for HP Compaq CQ60

Add GPIO configuration for the Compaq CQ60 laptop

---
 drivers/net/wireless/ath/ath5k/led.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath5k/led.c +2 -0
index 7ce98bd..fca0cfa 100644
@@ -71,6 +71,8 @@ static const struct pci_device_id ath5k_led_devices[] = {
 	{ ATH_SDEVICE(PCI_VENDOR_ID_AZWAVE, 0x1026), ATH_LED(3, 0) },
 	/* IBM ThinkPad AR5BXB6 (legovini at spiro.fisica.unipd.it) */
 	{ ATH_SDEVICE(PCI_VENDOR_ID_IBM, 0x058a), ATH_LED(1, 0) },
+	/* HP Compaq CQ60-206US (ddreggors at jumptv.com) */
+	{ ATH_SDEVICE(PCI_VENDOR_ID_HP, 0x0137a), ATH_LED(3, 1) },
 	/* HP Compaq C700 (nitrousnrg at gmail.com) */
 	{ ATH_SDEVICE(PCI_VENDOR_ID_HP, 0x0137b), ATH_LED(3, 1) },
 	/* IBM-specific AR5212 (all others) */
Signature · 1 line
1.6.2.5
#2 lore raw

PATCH 3/3 ath5k: add LED definition for BenQ Joybook R55v

In reply to Bob Copeland

Setup the GPIOs for the BenQ Joybook netbook.

---
 drivers/net/wireless/ath/ath5k/led.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath5k/led.c +2 -0
index fca0cfa..d495890 100644
@@ -65,6 +65,8 @@ static const struct pci_device_id ath5k_led_devices[] = {
 	{ ATH_SDEVICE(PCI_VENDOR_ID_AMBIT, 0x0422), ATH_LED(1, 1) },
 	/* E-machines E510 (tuliom at gmail.com) */
 	{ ATH_SDEVICE(PCI_VENDOR_ID_AMBIT, 0x0428), ATH_LED(3, 0) },
+	/* BenQ Joybook R55v (nowymarluk at wp.pl) */
+	{ ATH_SDEVICE(PCI_VENDOR_ID_QMI, 0x0100), ATH_LED(1, 0) },
 	/* Acer Extensa 5620z (nekoreeve at gmail.com) */
 	{ ATH_SDEVICE(PCI_VENDOR_ID_QMI, 0x0105), ATH_LED(3, 0) },
 	/* Fukato Datacask Jupiter 1014a (mrb74 at gmx.at) */
Signature · 1 line
1.6.2.5
maintainer
#3 lore raw

PATCH 1/3 ath5k: don't reset mcast filter when configuring the mode

In reply to Bob Copeland

2009/11/9 Bob Copeland <[email protected]>:

Quoted 16 lines

We should not zero out the multicast hash when configuring the operating mode, since a zero value means all multicast frames will get dropped.  Also, ath5k_mode_setup() gets called after any reset, so the hash already set up in configure_filter() is lost.

---
 drivers/net/wireless/ath/ath5k/base.c |    1 -

 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/net/wireless/ath/ath5k/base.c +0 -0
index 07c1e52..cb3dc89 100644

drivers/net/wireless/ath/ath5k/base.c ath5k_mode_setup(struct ath5k_softc *sc) · line 1151

Quoted 7 lines
drivers/net/wireless/ath/ath5k/base.c +0 -1
@@ -1146,7 +1146,6 @@ ath5k_mode_setup(struct ath5k_softc *sc)
        /* configure operational mode */
        ath5k_hw_set_opmode(ah);
 
-       ath5k_hw_set_mcast_filter(ah, 0, 0);
        ATH5K_DBG(sc, ATH5K_DEBUG_MODE, "RX filter 0x%x\n", rfilt);
  }
 
Signature · 3 lines
GPG ID: 0xD21DB2DB
As you read this post global entropy rises. Have Fun ;-)
Nick