View Single Post
Posts: 154 | Thanked: 73 times | Joined on Jan 2009 @ Toronto
#17
Originally Posted by luca View Post
FWIW, I just tried to echo 0x30 to /sys/devices/platform/wlan-omap/default_country, set my access point to channel 13, restarted wlancond and I could connect.

..... /etc/init.d/wlancond restart doesn't work, I have to do a stop then a start (I think it's a timing issue, wlancond restart never worked reliably).
PERFECT! THANK YOU! So now we have a tested solution for anyone(*) in Europe with a Nokia Tablet originally sold in North America, when unable to connect to wifi that works fine for other people around.

The problem is quite likely to result from the Access Point's being set to channel 12 or 13. (There will also sometimes be situations where there is an n-only AP, or a b/g/n AP located too far away for the b/g signal to be usable. Nothing you can do about that, except maybe ask where the router is and move closer.)

SOLUTION (assuming that rootsh or becomeroot has been installed)
Open X-Terminal
Code:
sudo gainroot
echo 0x30 >/sys/devices/platform/wlan-omap/default_country
/etc/init.d/wlancond stop
/etc/init.d/wlancond start
Close Terminal (unless you have other stuff to do there)
Connect wifi.

Repeat the coding after any reboot.

Anyone including the commands in a post-boot script might want to put "sleep 3" between the stop and start.

(*) So far, tested on Turbo DIABLO only. Users with other systems, please report success or failure.


Originally Posted by LinuxStation View Post
... anyone knows what code would provide channels 1 -14?
I have spent fruitless hours of googling, trying to find what the hexadecimal country codes are. Every two-letter country code has a three-decimal-digit counterpart, but they do not relate in any obvious way to the hex codes used here. In the old thread, people mentioned 0x10, 0x01 and 0x30, but no countries have the corresponding decimal representations 016, 001 or 048. I seem to remember that someone somewhere mentioned 0x41 in relation to Japan.

Does anybody know where these hex numbers come from?

Last edited by scaler; 2011-03-18 at 22:21. Reason: Nothing important