diff options
Diffstat (limited to 'drivers/net/wireless/bcm43xx/bcm43xx_main.c')
-rw-r--r-- | drivers/net/wireless/bcm43xx/bcm43xx_main.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_main.c b/drivers/net/wireless/bcm43xx/bcm43xx_main.c index 2e400aacc436..73c831a3b747 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx_main.c +++ b/drivers/net/wireless/bcm43xx/bcm43xx_main.c | |||
@@ -851,8 +851,6 @@ static int bcm43xx_sprom_extract(struct bcm43xx_private *bcm) | |||
851 | value = sprom[BCM43xx_SPROM_ETHPHY]; | 851 | value = sprom[BCM43xx_SPROM_ETHPHY]; |
852 | bcm->sprom.et0phyaddr = (value & 0x001F); | 852 | bcm->sprom.et0phyaddr = (value & 0x001F); |
853 | bcm->sprom.et1phyaddr = (value & 0x03E0) >> 5; | 853 | bcm->sprom.et1phyaddr = (value & 0x03E0) >> 5; |
854 | bcm->sprom.et0mdcport = (value & (1 << 14)) >> 14; | ||
855 | bcm->sprom.et1mdcport = (value & (1 << 15)) >> 15; | ||
856 | 854 | ||
857 | /* boardrev, antennas, locale */ | 855 | /* boardrev, antennas, locale */ |
858 | value = sprom[BCM43xx_SPROM_BOARDREV]; | 856 | value = sprom[BCM43xx_SPROM_BOARDREV]; |
@@ -1449,12 +1447,10 @@ static void handle_irq_transmit_status(struct bcm43xx_private *bcm) | |||
1449 | 1447 | ||
1450 | bcm43xx_debugfs_log_txstat(bcm, &stat); | 1448 | bcm43xx_debugfs_log_txstat(bcm, &stat); |
1451 | 1449 | ||
1452 | if (stat.flags & BCM43xx_TXSTAT_FLAG_IGNORE) | 1450 | if (stat.flags & BCM43xx_TXSTAT_FLAG_AMPDU) |
1451 | continue; | ||
1452 | if (stat.flags & BCM43xx_TXSTAT_FLAG_INTER) | ||
1453 | continue; | 1453 | continue; |
1454 | if (!(stat.flags & BCM43xx_TXSTAT_FLAG_ACK)) { | ||
1455 | //TODO: packet was not acked (was lost) | ||
1456 | } | ||
1457 | //TODO: There are more (unknown) flags to test. see bcm43xx_main.h | ||
1458 | 1454 | ||
1459 | if (bcm43xx_using_pio(bcm)) | 1455 | if (bcm43xx_using_pio(bcm)) |
1460 | bcm43xx_pio_handle_xmitstatus(bcm, &stat); | 1456 | bcm43xx_pio_handle_xmitstatus(bcm, &stat); |
@@ -3696,7 +3692,7 @@ static int bcm43xx_read_phyinfo(struct bcm43xx_private *bcm) | |||
3696 | { | 3692 | { |
3697 | struct bcm43xx_phyinfo *phy = bcm43xx_current_phy(bcm); | 3693 | struct bcm43xx_phyinfo *phy = bcm43xx_current_phy(bcm); |
3698 | u16 value; | 3694 | u16 value; |
3699 | u8 phy_version; | 3695 | u8 phy_analog; |
3700 | u8 phy_type; | 3696 | u8 phy_type; |
3701 | u8 phy_rev; | 3697 | u8 phy_rev; |
3702 | int phy_rev_ok = 1; | 3698 | int phy_rev_ok = 1; |
@@ -3704,12 +3700,12 @@ static int bcm43xx_read_phyinfo(struct bcm43xx_private *bcm) | |||
3704 | 3700 | ||
3705 | value = bcm43xx_read16(bcm, BCM43xx_MMIO_PHY_VER); | 3701 | value = bcm43xx_read16(bcm, BCM43xx_MMIO_PHY_VER); |
3706 | 3702 | ||
3707 | phy_version = (value & 0xF000) >> 12; | 3703 | phy_analog = (value & 0xF000) >> 12; |
3708 | phy_type = (value & 0x0F00) >> 8; | 3704 | phy_type = (value & 0x0F00) >> 8; |
3709 | phy_rev = (value & 0x000F); | 3705 | phy_rev = (value & 0x000F); |
3710 | 3706 | ||
3711 | dprintk(KERN_INFO PFX "Detected PHY: Version: %x, Type %x, Revision %x\n", | 3707 | dprintk(KERN_INFO PFX "Detected PHY: Analog: %x, Type %x, Revision %x\n", |
3712 | phy_version, phy_type, phy_rev); | 3708 | phy_analog, phy_type, phy_rev); |
3713 | 3709 | ||
3714 | switch (phy_type) { | 3710 | switch (phy_type) { |
3715 | case BCM43xx_PHYTYPE_A: | 3711 | case BCM43xx_PHYTYPE_A: |
@@ -3752,7 +3748,7 @@ static int bcm43xx_read_phyinfo(struct bcm43xx_private *bcm) | |||
3752 | phy_rev); | 3748 | phy_rev); |
3753 | } | 3749 | } |
3754 | 3750 | ||
3755 | phy->version = phy_version; | 3751 | phy->analog = phy_analog; |
3756 | phy->type = phy_type; | 3752 | phy->type = phy_type; |
3757 | phy->rev = phy_rev; | 3753 | phy->rev = phy_rev; |
3758 | if ((phy_type == BCM43xx_PHYTYPE_B) || (phy_type == BCM43xx_PHYTYPE_G)) { | 3754 | if ((phy_type == BCM43xx_PHYTYPE_B) || (phy_type == BCM43xx_PHYTYPE_G)) { |