iw broken

Discussions Regarding Software

Moderator: Moderators

iw broken

Postby chasha420 » Sat Oct 27, 2012 16:14

Hello,

I wanted to report an issue with the iw utility in Sabayon which needs to be updated from portage.

This utility is mainly used for stuff like changing region for wifi cards which would allow someone to use certain channels or increase power of the card (range) using iwconfig once the region has been set...to operate the card according to the regulated limits of a specific country, etc. which is quite important..because other than that you're not allowed to do so.

This is the error I get when trying to change the country or invoke some command using iw:
Code: Select all
iw reg set US                                                                                                                                   
iw: error while loading shared libraries: libnl-genl-3.so.200: cannot open shared object file: No such file or directory
----------------------------------


But I did try installing the same utility from portage instead of the one in Entropy, and apparently iw command works but I'm not able to change the country and it default to country 00 :shock:

I dunno what's going on but on other distros it works fine, please let me know if anyone has a suggestion or work around for this or if it's really a bug that should be looked into.

Thanks. :mrgreen:
User avatar
chasha420
Advanced Hen
 
Posts: 292
Joined: Thu Mar 31, 2011 15:32
Location: /dev/null

Re: iw broken

Postby sabayonino » Sun Oct 28, 2012 0:05

as you can see "iw" needs libnl.3 library version

Code: Select all
# equo search libnl
equo search libnl
>>  @@ Cercando...
>>      @@ Pacchetto: dev-libs/libnl-1.1-r2 branch: 5, [sabayonlinux.org]
>>         Disponibile:   versione: 1.1-r2 ~ tag: NoTag ~ revisione: 2
>>         Installato:    versione: 1.1-r2 ~ tag: NoTag ~ revisione: 2
>>         Slot:          1.1
>>         Homepage:      http://www.infradead.org/~tgr/libnl/
>>         Descrizione:   A library for applications dealing
>>                        with netlink socket
>>         Licenza:       LGPL-2.1
>>      @@ Pacchetto: dev-libs/libnl-3.2.11 branch: 5, [sabayonlinux.org]
>>         Disponibile:   versione: 3.2.11 ~ tag: NoTag ~ revisione: 0
>>         Installato:    versione: 3.2.11 ~ tag: NoTag ~ revisione: 0
>>         Slot:          3
>>         Homepage:      http://www.infradead.org/~tgr/libnl/
>>         Descrizione:   A library for applications dealing
>>                        with netlink socket
>>         Licenza:       LGPL-2.1
>>  Keyword:  libnl
>>  Trovati:  2 entries


Fix:
Code: Select all
# equo install dev-libs/libnl-3.2.11


Run "iw" as root
Code: Select all
# iw
iw
Password:
Usage:  iw [options] command
Options:
        --debug         enable netlink debugging
        --version       show version (3.6)
Commands:                                                                                                                                                                           
        help [command]                                                                                                                                                             
        event [-t] [-r] [-f]                                                                                                                                                       
        phy                                                                                                                                                                         
        list                                                                                                                                                                       
        phy <phyname> info                                                                                                                                                         
        dev                                                                                                                                                                         
        dev <devname> info                                                                                                                                                         
        dev <devname> del                                                                                                                                                           
        dev <devname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*]                                                                           
        phy <phyname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*]                                                                           
        dev <devname> ibss join <SSID> <freq in MHz> [HT20|HT40+|HT40-|NOHT] [fixed-freq] [<fixed bssid>] [beacon-interval <TU>] [basic-rates <rate in Mbps,rate2,...>] [mcast-rate <rate in Mbps>] [key d:0:abcde]                                                                                                                                                     
        dev <devname> ibss leave
        dev <devname> station dump
        dev <devname> station set <MAC address> vlan <ifindex>
        dev <devname> station set <MAC address> plink_action <open|block>
        dev <devname> station del <MAC address>
        dev <devname> station get <MAC address>
        dev <devname> survey dump
        dev <devname> mesh leave
        dev <devname> mesh join <mesh ID> [mcast-rate <rate in Mbps>] [vendor_sync on|off] [<param>=<value>]*
        dev <devname> mpath dump
        dev <devname> mpath set <destination MAC address> next_hop <next hop MAC address>
        dev <devname> mpath new <destination MAC address> next_hop <next hop MAC address>
        dev <devname> mpath del <MAC address>
        dev <devname> mpath get <MAC address>
        dev <devname> scan [-u] [freq <freq>*] [ies <hex as 00:11:..>] [ssid <ssid>*|passive]
        dev <devname> scan trigger [freq <freq>*] [ies <hex as 00:11:..>] [ssid <ssid>*|passive]
        dev <devname> scan dump [-u]
        reg get
        reg set <ISO/IEC 3166-1 alpha2>
        dev <devname> connect [-w] <SSID> [<freq in MHz>] [<bssid>] [key 0:abcde d:1:6162636465]
        dev <devname> disconnect
        dev <devname> link
        dev <devname> offchannel <freq> <duration>
        dev <devname> cqm rssi <threshold|off> [<hysteresis>]
        phy <phyname> wowlan show
        phy <phyname> wowlan disable
        phy <phyname> wowlan enable [any] [disconnect] [magic-packet] [gtk-rekey-failure] [eap-identity-request] [4way-handshake] [rfkill-release] [patterns <pattern>*]
        dev <devname> roc start <freq> <time>
        phy <phyname> set antenna <bitmap> | all | <tx bitmap> <rx bitmap>
        dev <devname> set txpower <auto|fixed|limit> [<tx power in mBm>]
        phy <phyname> set txpower <auto|fixed|limit> [<tx power in mBm>]
        phy <phyname> set distance <distance>
        phy <phyname> set coverage <coverage class>
        phy <phyname> set netns <pid>
        phy <phyname> set rts <rts threshold|off>
        phy <phyname> set frag <fragmentation threshold|off>
        dev <devname> set channel <channel> [HT20|HT40+|HT40-]
        phy <phyname> set channel <channel> [HT20|HT40+|HT40-]
        dev <devname> set freq <freq> [HT20|HT40+|HT40-]
        phy <phyname> set freq <freq> [HT20|HT40+|HT40-]
        phy <phyname> set name <new name>
        dev <devname> set peer <MAC address>
        dev <devname> set noack_map <map>
        dev <devname> set 4addr <on|off>
        dev <devname> set type <type>
        dev <devname> set meshid <meshid>
        dev <devname> set monitor <flag>*
        dev <devname> set mesh_param <param>=<value> [<param>=<value>]*
        dev <devname> set power_save <on|off>
        dev <devname> set bitrates [legacy-<2.4|5> <legacy rate in Mbps>*] [mcs-<2.4|5> <MCS index>*]
        dev <devname> get mesh_param [<param>]
        dev <devname> get power_save <param>

Commands that use the netdev ('dev') can also be given the
'wdev' instead to identify the device.

You can omit the 'phy' or 'dev' if the identification is unique,
e.g. "iw wlan0 info" or "iw phy0 info". (Don't when scripting.)

Do NOT screenscrape this tool, we don't consider its output stable.



... and its options :mrgreen:
User avatar
sabayonino
Sagely Hen
 
Posts: 1559
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: iw broken

Postby chasha420 » Sun Oct 28, 2012 2:29

Thanks @sabayonino, it works in the sense that it doesn't give any error now after installing the library...but then again it doesn't work :(

This is the problem that I face even when I was using this from portage:
Code: Select all
# iw reg set Bo
# iw reg get                                                                                                             
country 00:
        (2402 - 2472 @ 40), (6, 20)
        (2457 - 2482 @ 20), (6, 20), PASSIVE-SCAN, NO-IBSS
        (2474 - 2494 @ 20), (6, 20), NO-OFDM, PASSIVE-SCAN, NO-IBSS
        (5170 - 5250 @ 40), (6, 20), PASSIVE-SCAN, NO-IBSS
        (5735 - 5835 @ 40), (6, 20), PASSIVE-SCAN, NO-IBSS
        (57240 - 63720 @ 2160), (N/A, 0)

# iw reg set US
# iw reg get                                                                                                             
country 00:
        (2402 - 2472 @ 40), (6, 20)
        (2457 - 2482 @ 20), (6, 20), PASSIVE-SCAN, NO-IBSS
        (2474 - 2494 @ 20), (6, 20), NO-OFDM, PASSIVE-SCAN, NO-IBSS
        (5170 - 5250 @ 40), (6, 20), PASSIVE-SCAN, NO-IBSS
        (5735 - 5835 @ 40), (6, 20), PASSIVE-SCAN, NO-IBSS
        (57240 - 63720 @ 2160), (N/A, 0)



As you can see the country doesn't change and it defaults to country 00...what the hell :|

Any fix for this? Thanks.
User avatar
chasha420
Advanced Hen
 
Posts: 292
Joined: Thu Mar 31, 2011 15:32
Location: /dev/null


Return to Software in General

Who is online

Users browsing this forum: No registered users and 0 guests