Portál AbcLinuxu, 8. května 2025 02:40
[ 1202.566566] pcmcia_socket pcmcia_socket0: pccard: card ejected from slot 0 [ 1202.860378] ath5k 0000:02:00.0: PCI INT A disabled [ 1204.370132] pcmcia_socket pcmcia_socket0: pccard: CardBus card inserted into slot 0 [ 1204.370177] pci 0000:02:00.0: reg 10: [mem 0x00000000-0x0000ffff] [ 1204.370246] pci 0000:02:00.0: BAR 0: assigned [mem 0x58000000-0x5800ffff] [ 1204.370254] pci 0000:02:00.0: BAR 0: set to [mem 0x58000000-0x5800ffff] (PCI address [0x58000000-0x5800ffff] [ 1204.370502] ath5k 0000:02:00.0: enabling device (0000 -> 0002) [ 1204.370512] ath5k 0000:02:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 [ 1204.370624] ath5k 0000:02:00.0: registered as 'phy2' [ 1204.839198] ath: EEPROM regdomain: 0x0 [ 1204.839201] ath: EEPROM indicates default country code should be used [ 1204.839203] ath: doing EEPROM country->regdmn map search [ 1204.839207] ath: country maps to regdmn code: 0x3a [ 1204.839210] ath: Country alpha2 being used: US [ 1204.839212] ath: Regpair used: 0x3a [ 1204.842082] phy2: Selected rate control algorithm 'minstrel' [ 1204.842402] ath5k phy2: Atheros AR5213A chip found (MAC: 0x59, PHY: 0x43) [ 1204.842406] ath5k phy2: RF5112B multiband radio found (0x36) [ 1204.842439] cfg80211: Calling CRDA for country: USPoužívám na to :
iw reg set DE
ale když pak dám iw reg get
tak tam je neustále country 00 a v demsg je US. Netuší někdo jak tu kartu s tímhle driverem donutit aby se chovala jak má ?
--- linux-2.6.32-gentoo-r1-orig/drivers/net/wireless/ath/ath5k/base.c 2009-12-03 06:51:21.000000000 +0300
+++ linux-2.6.32-gentoo-r1/drivers/net/wireless/ath/ath5k/base.c 2010-01-16 00:02:51.000000000 +0300
@@ -68,6 +68,11 @@
module_param_named(all_channels, modparam_all_channels, bool, S_IRUGO);
MODULE_PARM_DESC(all_channels, "Expose all channels the device can use.");
+static int modparam_override_eeprom_regdomain = -1;
+module_param_named(override_eeprom_regdomain,
+ modparam_override_eeprom_regdomain, int, S_IRUGO);
+MODULE_PARM_DESC(override_eeprom_regdomain, "Override regdomain hardcoded in EEPROM with this value (DANGEROUS).");
+
/******************\
* Internal defines *
@@ -572,6 +577,15 @@
goto err_irq;
}
+ if (modparam_override_eeprom_regdomain != -1) {
+ ATH5K_ERR(sc, "DANGER! You're overriding EEPROM-defined regulatory domain.\n");
+ ATH5K_ERR(sc, "Your card was not certified to operate on the domain you choosed.\n");
+ ATH5K_ERR(sc, "This might result in a violation of your local regulatory rules.\n");
+ ATH5K_ERR(sc, "Do not ever do that unless you really know what you do!\n");
+ sc->ah->ah_capabilities.cap_eeprom.ee_regdomain =
+ modparam_override_eeprom_regdomain;
+ }
+
/* set up multi-rate retry capabilities */
if (sc->ah->ah_version == AR5K_AR5212) {
hw->max_rates = 4;
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.