* libnl, bug question, and lib query
@ 2010-01-01 23:07 Carl Fürstenberg
2010-01-02 7:49 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Carl Fürstenberg @ 2010-01-01 23:07 UTC (permalink / raw)
To: linux-wireless
I'll start this up with three different question, hope that's not a
problem instead of sending three different mails.
First I wonder if I should, in a production environment using the
nl80211, stick to use libnl 1.* or should I use use the git 2.0?
Second I have noticed a problem regarding reg set/get which I can't
pin down where it goes wrong (reboot resolves the issue). Following is
how I can reproduce it. Notice all the nonsense input I used. I don't
know what exactly triggers it, but the "set DU seems to be a good
candidate"
wlan:/home/test# iw reg set US
wlan:/home/test# iw reg get
country US:
(2402 - 2472 @ 40), (3, 27)
(5170 - 5250 @ 40), (3, 17)
(5250 - 5330 @ 40), (3, 20), DFS
(5490 - 5600 @ 40), (3, 20), DFS
(5650 - 5710 @ 40), (3, 20), DFS
(5735 - 5835 @ 40), (3, 30)
wlan:/home/test# iw reg set CH
wlan:/home/test# iw reg get
country CH:
(2402 - 2482 @ 40), (N/A, 20)
(5170 - 5250 @ 40), (N/A, 20)
(5250 - 5330 @ 40), (N/A, 20), DFS
(5490 - 5710 @ 40), (N/A, 27), DFS
wlan:/home/test# iw reg set DU
wlan:/home/test# iw reg get
country CH:
(2402 - 2482 @ 40), (N/A, 20)
(5170 - 5250 @ 40), (N/A, 20)
(5250 - 5330 @ 40), (N/A, 20), DFS
(5490 - 5710 @ 40), (N/A, 27), DFS
wlan:/home/test# iw reg set WO
wlan:/home/test# iw reg get
country CH:
(2402 - 2482 @ 40), (N/A, 20)
(5170 - 5250 @ 40), (N/A, 20)
(5250 - 5330 @ 40), (N/A, 20), DFS
(5490 - 5710 @ 40), (N/A, 27), DFS
wlan:/home/test# iw reg set W
not a valid ISO/IEC 3166-1 alpha2
Special non-alpha2 usable entries:
00 World Regulatory domain
wlan:/home/test# iw reg set 00
wlan:/home/test# iw reg set W
not a valid ISO/IEC 3166-1 alpha2
Special non-alpha2 usable entries:
00 World Regulatory domain
wlan:/home/test# iw reg get
country CH:
(2402 - 2482 @ 40), (N/A, 20)
(5170 - 5250 @ 40), (N/A, 20)
(5250 - 5330 @ 40), (N/A, 20), DFS
(5490 - 5710 @ 40), (N/A, 27), DFS
wlan:/home/test# iw reg set 00
wlan:/home/test# iw --debug reg set 00
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[HEADER] 16 octets
.nlmsg_len = 36
.nlmsg_type = 2 <ERROR>
.nlmsg_flags = 0 <>
.nlmsg_seq = 1262372471
.nlmsg_pid = 11999
[ERRORMSG] 20 octets
.error = 0 "Success"
[ORIGINAL MESSAGE] 16 octets
.nlmsg_len = 16
.nlmsg_type = 17 <0x11>
.nlmsg_flags = 5 <REQUEST,ACK>
.nlmsg_seq = 1262372471
.nlmsg_pid = 11999
--------------------------- END NETLINK MESSAGE ---------------------------
Lastly I wonder if there is any plans to extract all relevant parts of
iw to some sort of libiw? Would be helpful for us :)
--
/Carl Fürstenberg <azatoth@gmail.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: libnl, bug question, and lib query
2010-01-01 23:07 libnl, bug question, and lib query Carl Fürstenberg
@ 2010-01-02 7:49 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2010-01-02 7:49 UTC (permalink / raw)
To: Carl Fürstenberg; +Cc: linux-wireless
Carl Fürstenberg <azatoth@gmail.com> writes:
> I'll start this up with three different question, hope that's not a
> problem instead of sending three different mails.
>
> First I wonder if I should, in a production environment using the
> nl80211, stick to use libnl 1.* or should I use use the git 2.0?
I have heard that libnl 2.0 does not have stable API currently. So
it's better to avoid it.
--
Kalle Valo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-02 7:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-01 23:07 libnl, bug question, and lib query Carl Fürstenberg
2010-01-02 7:49 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).