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@xxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html