rt2x00.serialmonkey.com

Support forum for the rt2x00 project
It is currently Fri May 24, 2013 7:24 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sun Aug 16, 2009 11:23 pm 
Offline

Joined: Sun Jul 26, 2009 4:09 pm
Posts: 3
Hi... i have a problem with my wifi-card. I don't know why the system do so, i have two ways of problem.

1) When i start the system, my gentoo trys to use dhcp for configuring wlan iface. It scans for wifi APs, and find some. But only protected. But later, in a few sec. it switch off the interface. (wlan0 down). So after it, when i try to connect to my AP, i try to scan for nets, getting if-ace up, and do the #iwlist wlan0 scan, it tells me "no results".. I don't know why ?

Code:
wlan0     IEEE 802.11bg  ESSID:"" 
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated   
          Tx-Power=off   
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B   
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


Later, i try to do this connection manually..and when i do
#iwconfig wlan0 essid "dlink" or #iwconfig wlan0 ap SOME_MAC it just do...nothing... only changed the ESSID: to

Code:
wlan0     IEEE 802.11bg  ESSID:"dlink"


I even tried to do #iwconfig wlan0 txpower 10 (or 20), and #iwconfig wlan0 essid "dlink" ap SOME_MAC but i also had no connection...

Code:
wlan0     IEEE 802.11bg  ESSID:"dlink" 
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated   
          Tx-Power=10 dBm


so... then i tried ndiswrapper with windows drivers....and it failed too.

2) When i modprobed ndiswrapper module, i have the following:

Code:
wlan0     IEEE 802.11g  ESSID:"default" 
          Mode:Auto  Frequency:2.437 GHz  Access Point: Not-Associated   
          Bit Rate:54 Mb/s   Tx-Power:20 dBm   Sensitivity=-121 dBm 
          RTS thr=2347 B   Fragment thr=2346 B   
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


But the scan still gives me no results. I did all the commands i listed before for manual connection, but there what i had...

Code:
wlan0     IEEE 802.11g  ESSID:"default" 
          Mode:Auto  Frequency:2.437 GHz  Access Point: Not-Associated   
          Bit Rate:54 Mb/s   Tx-Power:-2147483648 dBm   Sensitivity=-121 dBm 
          RTS thr=2347 B   Fragment thr=2346 B


I tried to change mode, power, anything....it failed... So any idea what it can be ?

My system info and logs:
1. Pentium 3 900Mhz
2. 256 RAM
3. MB TIGA TI-810+S
4. D-Link DWL-G510
01:0d.0 Network controller: RaLink RT2561/RT61 rev B 802.11g
Subsystem: D-Link System Inc DWL-G510 Rev C
Flags: bus master, slow devsel, latency 32, IRQ 12
Memory at efdf0000 (32-bit, non-prefetchable) [size=32K]
Capabilities: [40] Power Management version 2
Kernel driver in use: ndiswrapper
Kernel modules: rt61pci

Soft:
1) Latest Gentoo Linux system, with latest updates.
2) 2.6.29 kernel. (tried both with 2.6.30)
3) Ndiswrapper 1.53
4) Kernel's Ralink driver, 2.2.3
5) Firmware for Ralink card.

Dmesg:
Code:
PCI: setting IRQ 12 as level-triggered
rt61pci 0000:01:0d.0: found PCI INT A -> IRQ 12
phy0 -> rt61pci_validate_eeprom: EEPROM recovery - NIC: 0xff80
phy0 -> rt61pci_validate_eeprom: EEPROM recovery - Led: 0xe0ff
phy0 -> rt2x00_set_chip: Info - Chipset detected - rt: 0302, rf: 0003, rev: 0002561c.
wmaster0 (rt61pci): not using net_device_ops yet
phy0: Selected rate control algorithm 'minstrel'
wlan0 (rt61pci): not using net_device_ops yet
Registered led device: rt61pci-phy0:radio
Registered led device: rt61pci-phy0:assoc
phy0 -> rt2x00lib_request_firmware: Info - Loading firmware file 'rt2561.bin'.
rt61pci 0000:01:0d.0: firmware: requesting rt2561.bin
phy0 -> rt2x00lib_request_firmware: Info - Firmware detected - version: 0.8.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 2 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 3 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 2 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 3 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 2 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 3 - CWmin: 5, CWmax: 10, Aifs: 2, TXop: 0.
phy0 -> rt2x00rfkill_toggle_radio: Info - RFKILL event: disabling radio.
...................
ndiswrapper version 1.53 loaded (smp=no, preempt=no)
ndiswrapper: driver netrt61g (D-Link,06/04/2005, 1.00.00.0000) loaded
ndiswrapper 0000:01:0d.0: found PCI INT A -> IRQ 12
ndiswrapper: using IRQ 12
wlan0 (ndiswrapper): not using net_device_ops yet
wlan0: ethernet device 00:1b:11:14:8e:3f using serialized NDIS driver: netrt61g, version: 0x0, NDIS version: 0x500, vendor: 'IEEE 802.11g Wireless Card.', 1814:0302.5.conf
wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK


Notes: By the way, the last RT61's RFKILL event i suspect, is a consequence of module-remove procedure. (but i can mistake)


Attachments:
File comment: This is config file to my kernel
kernel-config-2.6.29.txt [55 KiB]
Downloaded 25 times
Top
 Profile  
 
PostPosted: Mon Aug 17, 2009 12:14 am 
Offline
Site Admin

Joined: Sun Jun 05, 2005 1:01 pm
Posts: 5905
Location: Haarlem, The Netherlands
Not sure if this applies to 2.6.29, but please try the following patch:
Code:
index cb7b6d4..208679d 100644 (file)
 
--- a/drivers/net/wireless/rt2x00/rt2x00mac.c
+++ b/drivers/net/wireless/rt2x00/rt2x00mac.c
@@ -704,8 +704,8 @@ EXPORT_SYMBOL_GPL(rt2x00mac_conf_tx);
 void rt2x00mac_rfkill_poll(struct ieee80211_hw *hw)
 {
        struct rt2x00_dev *rt2x00dev = hw->priv;
-       bool blocked = !!rt2x00dev->ops->lib->rfkill_poll(rt2x00dev);
+       bool active = !!rt2x00dev->ops->lib->rfkill_poll(rt2x00dev);
 
-       wiphy_rfkill_set_hw_state(hw->wiphy, blocked);
+       wiphy_rfkill_set_hw_state(hw->wiphy, !active);
 }
 EXPORT_SYMBOL_GPL(rt2x00mac_rfkill_poll);

_________________
Regards,
Ivo van Doorn
Project Administrator
http://rt2x00.serialmonkey.com


Top
 Profile  
 
PostPosted: Mon Aug 17, 2009 7:09 am 
Offline

Joined: Sun Jul 26, 2009 4:09 pm
Posts: 3
Ok...seems like i've partially done with problem. So, i excluded rfkill support from kernel (but i think this is not a clue...) and rebuild it. So, i have the problem stand still.. Then i removed this link @net.wlan0 from net.lo script that starts all network devices in gentoo, so the system shouldn't do any influence on my card. And after reboot i have a working card.. Yeah, great! But, iwlist scan gives me only 2 network, but when i scan from my laptop, it gives me over 10... And, my laptop placed far from the window, where the signal to this networks is most! My G510 is placed on a shelf at the bottom of the window... So, i suspect some system incompatibilities to detect that networks. where can i look for ? please help


Top
 Profile  
 
PostPosted: Thu Aug 20, 2009 3:58 am 
Offline

Joined: Sun Jul 26, 2009 4:09 pm
Posts: 3
So... ? There's no idea ? isn't it ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group