Re: Atheros wireless pcmcia shows as wired



On Sat, 2007-01-27 at 09:59 +0100, Grant Williamson wrote:
> Dan,
> doing some tests on 0.6.5, I stopped my ipw3945 card, popped in my 
> Netgear WG511T pcmcia wireless card and saw this - thinks it is wired. 
> How does NM detect if the card is wired/wireless? Is this a known issue.

This is most definitely a driver bug.  It's not setting up correct
symlinks in sysfs.  NM has nothing to do with this really, because NM
depends on drivers reporting themselves to HAL correctly.  HAL will
report the device's type based on sysfs links.

The driver you have is likely not implementing the 'get_wireless_stats'
handler, which in turn means there's no /sys/class/net/ath0/wireless/
directory, which means it's not recognized as a wireless card.

>From airo:

static const struct iw_handler_def	airo_handler_def =
{
	.num_standard	= sizeof(airo_handler)/sizeof(iw_handler),
	.num_private	= sizeof(airo_private_handler)/sizeof(iw_handler),
	.num_private_args = sizeof(airo_private_args)/sizeof(struct iw_priv_args),
	.standard	= airo_handler,
	.private	= airo_private_handler,
	.private_args	= airo_private_args,
	.get_wireless_stats = airo_get_wireless_stats,
};

That last line there is the one you likely care about for the madwifi
driver.  But you must be using an old driver, because AFAIK the new ones
have had the correct bits for quite a while.

Cheers,
Dan

> 
> [root lc4eb325689123 ~]# nm-tool
> 
> NetworkManager Tool
> 
> State: disconnected
> 
> - Device: ath0 
> ----------------------------------------------------------------
>   NM Path:           /org/freedesktop/NetworkManager/Devices/ath0
>   Type:              Wired
>   Driver:            ath_pci
>   Active:            no
>   HW Address:        xx:xx:xx:xx:xx:xx
> 
>   Capabilities:
>     Supported:       yes
> 
>   Wired Settings
>     Hardware Link:   yes
> 
> 
> - Device: eth1 
> ----------------------------------------------------------------
>   NM Path:           /org/freedesktop/NetworkManager/Devices/eth1
>   Type:              Wired
>   Driver:            e1000
>   Active:            no
>   HW Address:        xx:xx:xx:xx:xx:xx
> 
>   Capabilities:
>     Supported:       yes
>     Carrier Detect:  yes
>     Speed:           65535 Mb/s
> 
>   Wired Settings
>     Hardware Link:   no
> 
> pccard: CardBus card inserted into slot 0
> ath_hal: 0.9.18.0 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
> wlan: 0.8.4.2 (0.9.3)
> ath_rate_sample: 1.2 (0.9.3)
> ath_pci: 0.9.4.5 (0.9.3)
> PCI: Enabling device 0000:16:00.0 (0000 -> 0002)
> ACPI: PCI Interrupt 0000:16:00.0[A] -> GSI 16 (level, low) -> IRQ 169
> wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
> wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 
> 24Mbps 36Mbps 48Mbps 54Mbps
> wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
> wifi0: H/W encryption support: WEP AES AES_CCM TKIP
> wifi0: mac 7.9 phy 4.5 radio 5.6
> wifi0: Use hw queue 1 for WME_AC_BE traffic
> wifi0: Use hw queue 0 for WME_AC_BK traffic
> wifi0: Use hw queue 2 for WME_AC_VI traffic
> wifi0: Use hw queue 3 for WME_AC_VO traffic
> wifi0: Use hw queue 8 for CAB traffic
> wifi0: Use hw queue 9 for beacons
> wifi0: Atheros 5212: mem=0xe6000000, irq=169
> 
> 
> [root lc4eb325689123 ~]# iwconfig ath0
> ath0      IEEE 802.11g  ESSID:"" 
>           Mode:Managed  Frequency:2.452 GHz  Access Point: Not-Associated  
>           Bit Rate:0 kb/s   Tx-Power:18 dBm   Sensitivity=0/3 
>           Retry:off   RTS thr:off   Fragment thr:off
>           Encryption key:off
>           Power Management:off
> 
> 
> 
> _______________________________________________
> NetworkManager-list mailing list
> NetworkManager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]