Page 1 of 2

Enabling wifi in C series

Posted: Tue Jan 04, 2011 10:12 pm
by huffyk
Hi

i just bought RT compatible device. After playing with it i found out that it works with rt3070sta.ko module. It seems file 02_04_replace_wifi_mod.init.dis is not working in my case. It incorrectly parses folder /sys/class/net/* so i hardcoded interface name to correct one - "ra0" in my case to speed up analysis.

After starting 02_04_replace_wifi_mod.init.dis wifi interface gone up however i was no able to assign IP address to it. I even tried to disable WEP for my wifi net, tried to use TV's wifi setup (after switching in Menu from Cable to Wireless) but was not able to connect at all. So interface seems to be working but cannot get IP address. Later i will try hardcoding IP address but anyone knows why DHCP (i suppose udhcpc) doesn't assigns IP address for me? Of course that USB WIFI key works in winXP box so it is not hardware problem

thanks

Re: Enabling wifi in C series

Posted: Wed Jan 05, 2011 11:15 am
by arris69
huffyk wrote:Hi

i just bought RT compatible device. After playing with it i found out that it works with rt3070sta.ko module. It seems file 02_04_replace_wifi_mod.init.dis is not working in my case. It incorrectly parses folder /sys/class/net/* so i hardcoded interface name to correct one - "ra0" in my case to speed up analysis.
...
fix http://samygo.svn.sourceforge.net/viewv ... threv=1072 your problem?

thnx
arris

Re: Enabling wifi in C series

Posted: Wed Jan 05, 2011 11:54 am
by huffyk
arris69 wrote:
huffyk wrote:Hi

i just bought RT compatible device. After playing with it i found out that it works with rt3070sta.ko module. It seems file 02_04_replace_wifi_mod.init.dis is not working in my case. It incorrectly parses folder /sys/class/net/* so i hardcoded interface name to correct one - "ra0" in my case to speed up analysis.
...
fix http://samygo.svn.sourceforge.net/viewv ... threv=1072 your problem?

thnx
arris
If you mean fixing looking for interface name, i cannot test it now, but I guess it will not fix. In current script it shows message "not wireless dev" so I just skipped this part:

for DONG in /sys/class/net/* ; do
if [ -d $DONG/wireless ]; then
i=$(echo $DONG | sed -e "s,^/.*/.*/.*/\(.*\),\1,")
else
echo "not wireless dev"
fi
done

and set $i to "ra0". I checked folder /sys/class/net/ra0 and there is "wireless" folder so it might be problem with this for cycle.. i didn't debug it yet as i want to solve another problem first (assigning IP).

My guess is that maybe it should look like this:

if [ -d "$DONG/wireless" ]; then

Re: Enabling wifi in C series

Posted: Wed Jan 05, 2011 12:55 pm
by arris69
huffyk wrote:...
If you mean fixing looking for interface name, ...
not just that....
huffyk wrote:
and set $i to "ra0". I checked folder /sys/class/net/ra0 and there is "wireless" folder so it might be problem with this for cycle.. i didn't debug it yet as i want to solve another problem first (assigning IP).

My guess is that maybe it should look like this:

if [ -d "$DONG/wireless" ]; then
makes no difference in this case (believe me ;-) )
check windows firewall settins and "network location?" (this public and home stuff)

hth
arris

Re: Enabling wifi in C series

Posted: Thu Jan 06, 2011 11:16 pm
by huffyk
arris69 wrote:makes no difference in this case (believe me ;-) )
check windows firewall settins and "network location?" (this public and home stuff)

hth
arris
script is fine from start :)... The problem i got is just udhcpc. I don't know why it cannot get IP. Setting IP manually works... (of course DHCP server works as i have 3 other win boxes using it).

now i have another problem. When i disconnect LAN cable and restart TV, nothing works :(. I though wifi will enable but not...

Re: Enabling wifi in C series

Posted: Sat Jan 08, 2011 1:29 am
by huffyk
Another not good news :(. I guess wifi is not working at all... I think any iwconfig or iwpriv command is just ignored. When i run iwconfig i always see just this:

ra0 Ralink STA ESSID:"samsungdtv" Nickname:"RT2870STA"
Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated
Bit Rate:1 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality=10/100 Signal level:0 dBm Noise level:-115 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

also this shows always same:

iwpriv ra0 show SSID
ra0 show: samsungdtv

Data are taken from /etc/Wireless/RT2870STA/RT2870STA.dat where is stated also this SSID = "samsungdtv". This file is readonly so I think it might be cause why any iwpriv or iwconfig is ignored

strange thing is why ifconfig shows this:
ra0 Link encap:Ethernet HWaddr 00:1F:1F:7A:1F:EF
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:166702 (162.7 KiB) TX bytes:153232 (149.6 KiB)

but it seems it is going through eth0 interface actually... Any suggestion how to make wifi running in C series?

Re: Enabling wifi in C series

Posted: Sat Jan 08, 2011 1:36 am
by erdem_ua
Dows iwconfig might be wrong?
This command:

Code: Select all

ping -I ra0 192.168.1.1
could force pinging thru wifi device.
If you could see ping packets on it your other device (inspect it with wireshark) that means it's already working.

Re: Enabling wifi in C series

Posted: Sat Jan 08, 2011 9:53 pm
by huffyk
erdem_ua wrote:Dows iwconfig might be wrong?
This command:

Code: Select all

ping -I ra0 192.168.1.1
could force pinging thru wifi device.
If you could see ping packets on it your other device (inspect it with wireshark) that means it's already working.
Ping is working but i'm quite sure it is not going through wifi. Nothing was captured in the air and I checked also my rooter's client list and it is not there. This will also explain why ra0 is not working when i unplug cable. Actually it wants to go through eth0. It is rather strange setup. One command shows something different than other... Not even wifi setup in TV menu works. It cannot find anything (home AP) and cannot connect to anything.

In dmesg i see this:

usb 2-1: new high speed USB device using ehci-sdp and address 2
usb 2-1: configuration #1 chosen from 1 choice
not supported device connected Manufacturer: Ralink Product : 802.11 n WLAN

so maybe the system remembers that device ID was detected in boot process as not supported and i want it to load with another driver as supported one and doesn't allow it.
Maybe iwconfig and iwpriv from system are not working and i cannot find any other in SamyGO Extension to try...
Maybe 3070sta driver doesn't work correctly with my wifi card...

Re: Enabling wifi in C series

Posted: Sat Jan 08, 2011 10:09 pm
by arris69
huffyk wrote:...
In dmesg i see this:

usb 2-1: new high speed USB device using ehci-sdp and address 2
usb 2-1: configuration #1 chosen from 1 choice
not supported device connected Manufacturer: Ralink Product : 802.11 n WLAN

...
then try http://forum.samygo.tv/viewtopic.php?f= ... 230#p10230

hth
arris

Re: Enabling wifi in C series

Posted: Sat Jan 08, 2011 11:46 pm
by huffyk
arris69 wrote:
huffyk wrote:...
In dmesg i see this:

usb 2-1: new high speed USB device using ehci-sdp and address 2
usb 2-1: configuration #1 chosen from 1 choice
not supported device connected Manufacturer: Ralink Product : 802.11 n WLAN

...
then try http://forum.samygo.tv/viewtopic.php?f= ... 230#p10230

hth
arris
tried putting new ID and it activated wifi setup. However same results :(. Cannot find and connect to my net...

i think my device just don't work with that driver :(. btw. this is the dongle: http://www.getnet.eu/products_GN-331U.html