mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
ar71xx/mac80211: add a workaround for the bad signal strength on the WNDR3700
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19565 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Atheros AP94 reference board PCI initialization
|
||||
*
|
||||
* Copyright (C) 2009 Gabor Juhos <juhosg@openwrt.org>
|
||||
* Copyright (C) 2009-2010 Gabor Juhos <juhosg@openwrt.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 as published
|
||||
@@ -125,6 +125,12 @@ static void ap94_pci_fixup(struct pci_dev *dev)
|
||||
}
|
||||
DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_ATHEROS, PCI_ANY_ID, ap94_pci_fixup);
|
||||
|
||||
void __init ap94_pci_enable_quirk_wndr3700(void)
|
||||
{
|
||||
ap94_wmac0_data.quirk_wndr3700 = 1;
|
||||
ap94_wmac1_data.quirk_wndr3700 = 1;
|
||||
}
|
||||
|
||||
void __init ap94_pci_init(u8 *cal_data0, u8 *mac_addr0,
|
||||
u8 *cal_data1, u8 *mac_addr1)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Atheros AP94 reference board PCI initialization
|
||||
*
|
||||
* Copyright (C) 2009 Gabor Juhos <juhosg@openwrt.org>
|
||||
* Copyright (C) 2009-2010 Gabor Juhos <juhosg@openwrt.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 as published
|
||||
@@ -14,11 +14,14 @@
|
||||
#if defined(CONFIG_AR71XX_DEV_AP94_PCI)
|
||||
void ap94_pci_init(u8 *cal_data0, u8 *mac_addr0,
|
||||
u8 *cal_data1, u8 *mac_addr1) __init;
|
||||
|
||||
void ap94_pci_enable_quirk_wndr3700(void) __init;
|
||||
|
||||
#else
|
||||
static inline void ap94_pci_init(u8 *cal_data0, u8 *mac_addr0,
|
||||
u8 *cal_data1, u8 *mac_addr1)
|
||||
{
|
||||
}
|
||||
u8 *cal_data1, u8 *mac_addr1) {}
|
||||
|
||||
static inline void ap94_pci_enable_quirk_wndr3700(void) {}
|
||||
#endif
|
||||
|
||||
#endif /* _AR71XX_DEV_AP94_PCI_H */
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Netgear WNDR3700 board support
|
||||
*
|
||||
* Copyright (C) 2009 Marco Porsch
|
||||
* Copyright (C) 2009 Gabor Juhos <juhosg@openwrt.org>
|
||||
* Copyright (C) 2009-2010 Gabor Juhos <juhosg@openwrt.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 as published
|
||||
@@ -191,6 +191,7 @@ static void __init wndr3700_setup(void)
|
||||
platform_device_register(&wndr3700_rtl8366s_device);
|
||||
platform_device_register_simple("wndr3700-led-usb", -1, NULL, 0);
|
||||
|
||||
ap94_pci_enable_quirk_wndr3700();
|
||||
ap94_pci_init(art + WNDR3700_CALDATA0_OFFSET,
|
||||
art + WNDR3700_WMAC0_MAC_OFFSET,
|
||||
art + WNDR3700_CALDATA1_OFFSET,
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
struct ath9k_platform_data {
|
||||
u16 eeprom_data[ATH9K_PLAT_EEP_MAX_WORDS];
|
||||
u8 *macaddr;
|
||||
|
||||
unsigned long quirk_wndr3700:1;
|
||||
};
|
||||
|
||||
#endif /* _LINUX_ATH9K_PLATFORM_H */
|
||||
|
||||
Reference in New Issue
Block a user