maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N9 / N950 (https://talk.maemo.org/forumdisplay.php?f=51)
-   -   N9 and 5GHz (https://talk.maemo.org/showthread.php?t=90954)

mt6561 2013-08-03 23:57

N9 and 5GHz
 
Hi All,

I just google a night to allow my N9 use 5Ghz. That's the regulatory domain problem.

The solution was quite easy: just remove /usr/lib/crda/regulatory.bin file. Then my N9 is able to see all the channels available ;)

I switched it to 5Ghz and after executing '/sbin/iwconfig wlan0 power off' the awful delays (ping the device >100ms) gone, and I have ping 1ms, full speed, but probably less battery life, of course.

n0x 2013-08-04 00:32

Re: N9 and 5GHz
 
Any explanation as to how removing the file affects 5GHz availability? :)

XiliX 2013-08-04 06:19

Re: N9 and 5GHz
 
isnt is locked for some countries because they have laws there prohibiting the use of wlan?

coderus 2013-08-04 09:09

Re: N9 and 5GHz
 
install iw for harmattan with Debinstaller and you will have possibility to change regulatory domain.

iw reg get - shows current domain and allowed ranges
iw reg set DOMAIN - sets choosed domain

/etc/iw/domain.conf - contains domain which will be set after reboot (regulatory domain always set to default after phone shutdown)

enjoy ;)

Morpog 2013-08-04 10:22

Re: N9 and 5GHz
 
I just installed the iw package as you suggested, but it says not found when I try to run it in console.

I see it's located in /usr/sbin/ and tried to run it from there as user and as root, still no success :(

coderus 2013-08-04 10:58

Re: N9 and 5GHz
 
export PATH=$PATH:/usr/sbin
iw reg get
iw reg set IT

it handy to have pull PATH line in /etc/profile, instead of default one
Code:

export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11"

Morpog 2013-08-04 11:07

Re: N9 and 5GHz
 
Thanks, that worked!

It seems there is an even more easy solution for the 5Ghz problem. Some frequencies seem to be disabled, so I just choosed in my router a frequency that was allowed and tada, I can see my 5Ghz WLAN.

To show, just use:

iw list

and lookout for Frequencies:

sample output from my N9: http://pastie.org/8205109

ladoga 2013-08-04 11:11

Re: N9 and 5GHz
 
Quote:

Originally Posted by Morpog (Post 1364822)
I see it's located in /usr/sbin/ and tried to run it from there as user and as root, still no success :(

What do you mean by "no success" and what "by tried to run it from there". Please be more specific.

If ash says file not found and you have confirmed that /usr/sbin/iw exists, then I presume you are doing something wrong.

Let's verify it exists:
Code:

~ # which iw
/usr/sbin/iw

There's several ways to run executable files.
Either you use full path of the file:
Code:

~ # /usr/sbin/iw
...or you can use relative path, for example ( "./" means present working directory and "../" would mean one below it ):
Code:

~ # cd /usr/sbin
/usr/sbin # ./iw

...or if you have /usr/sbin in your current user's (root in this case) PATH variable,
Code:

~ # echo $PATH
/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11

...then you can just:
Code:

~ # iw

LinuxCub 2013-08-04 13:05

Re: N9 and 5GHz
 
Quote:

Originally Posted by Morpog (Post 1364822)
I see it's located in /usr/sbin/ and tried to run it from there as user and as root, still no success :(

Were you doing this DOS/WIndoze thing where you _assumed_ that the current directory would be part of the search-path for executables/commands ?

In Unix/Linux, simply "cd"-ing to a directory containing a command and then typing the commandname won't work, unless you then actually type "./commandname".

Do you see what I mean ?

coderus 2013-08-04 13:12

Re: N9 and 5GHz
 
@LinuxClub just because of security reasons. But you can always add $PWD to PATH, and voila!

Morpog 2013-08-04 13:33

Re: N9 and 5GHz
 
Quote:

Originally Posted by LinuxCub (Post 1364854)
Were you doing this DOS/WIndoze thing where you _assumed_ that the current directory would be part of the search-path for executables/commands ?

In Unix/Linux, simply "cd"-ing to a directory containing a command and then typing the commandname won't work, unless you then actually type "./commandname".

Do you see what I mean ?

Yep, I always forget that. Still a Linux newb. N9 made me use linux and learn stuff of it.

wolke 2013-08-04 17:09

Re: N9 and 5GHz
 
i have a slightly weird problem with 5ghz that im not sure is related to the hidden channels problem you guys have.

i have a ddwrt router with single/double/dynamic bandwidth options {20, 40, 20/40, respectively} for setting the extra channel in 5ghz.

if i choose 20, the n9 works perfectly correctly, and remembers the network.
if i choose 40, the n9 cant see it at all {makes sense}

the weird problem is if i choose 20/40.
my n9 can see the router, connect to it, and get on the internet.
however, it sees the network as a new network every time, prompting for the wpa key. it stores a copy of it each time in the list of internet connections, and no fiddling with the settings can convince it that the network is the same network, even while its still currently connected.

anyone else experience this, and/or have a workaround?

{if the networking code is available somewhere, this is probably a one-liner to fix. anyone know where the source might live?}

davmin 2013-08-04 18:15

Mobile gear (notebook,smartphone, tablets...) not work with 40

wolke 2013-08-04 19:25

Re: N9 and 5GHz
 
thanks for the response. however, i am quite aware of this already, and it is not the issue i am facing.

my problem is that when using 20/40, the n9 connects properly at 20 like it should, and then proceeds to identify the same SSID as a new SSID repeatedly.
to be clear, the wifi works pefectly with my n9, it just prompts me for my wpa every time i switch networks, and wont automatically connect.

LinuxCub 2013-08-04 19:38

Re: N9 and 5GHz
 
Quote:

Originally Posted by coderus (Post 1364855)
@LinuxClub just because of security reasons. But you can always add $PWD to PATH, and voila!

:-) I am LinuxCub, not LinuxClub (I am only one person) :-) And I have been using Linux since 1995. My post was not meant for you, I realise you are quite a guru, and I thank you for your work for the N9.

"give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime" That is why I replied in the way I did, to encourage Morpog to understand what was going on.

coderus 2013-08-04 20:04

Well, it wasnt about your knowledge also. just posted about way to make shell simpler for newibles ;)


All times are GMT. The time now is 19:12.

vBulletin® Version 3.8.8