Enabling wifi in C series
Enabling wifi in C series
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
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
-
- Official SamyGO Developer
- Posts: 1700
- Joined: Fri Oct 02, 2009 8:52 am
- Location: Austria/Vienna (no Kangaroos here)
- Contact:
Re: Enabling wifi in C series
fix http://samygo.svn.sourceforge.net/viewv ... threv=1072 your problem?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.
...
thnx
arris
Re: Enabling wifi in C series
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:arris69 wrote:fix http://samygo.svn.sourceforge.net/viewv ... threv=1072 your problem?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.
...
thnx
arris
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
-
- Official SamyGO Developer
- Posts: 1700
- Joined: Fri Oct 02, 2009 8:52 am
- Location: Austria/Vienna (no Kangaroos here)
- Contact:
Re: Enabling wifi in C series
not just that....huffyk wrote:...
If you mean fixing looking for interface name, ...
makes no difference in this case (believe mehuffyk 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

check windows firewall settins and "network location?" (this public and home stuff)
hth
arris
Re: Enabling wifi in C series
script is fine from startarris69 wrote:makes no difference in this case (believe me)
check windows firewall settins and "network location?" (this public and home stuff)
hth
arris

now i have another problem. When i disconnect LAN cable and restart TV, nothing works

Re: Enabling wifi in C series
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?

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?
- erdem_ua
- SamyGO Admin
- Posts: 3126
- Joined: Thu Oct 01, 2009 6:02 am
- Location: Istanbul, Turkey
- Contact:
Re: Enabling wifi in C series
Dows iwconfig might be wrong?
This command: 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.
This command:
Code: Select all
ping -I ra0 192.168.1.1
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
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.erdem_ua wrote:Dows iwconfig might be wrong?
This command:could force pinging thru wifi device.Code: Select all
ping -I ra0 192.168.1.1
If you could see ping packets on it your other device (inspect it with wireshark) that means it's already working.
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...
-
- Official SamyGO Developer
- Posts: 1700
- Joined: Fri Oct 02, 2009 8:52 am
- Location: Austria/Vienna (no Kangaroos here)
- Contact:
Re: Enabling wifi in C series
then try http://forum.samygo.tv/viewtopic.php?f= ... 230#p10230huffyk 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
...
hth
arris
Re: Enabling wifi in C series
tried putting new ID and it activated wifi setup. However same resultsarris69 wrote:then try http://forum.samygo.tv/viewtopic.php?f= ... 230#p10230huffyk 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
...
hth
arris

i think my device just don't work with that driver
