On 01/15/2012 05:10 AM, Stefan Lippers-Hollmann wrote:
Hi

On Sunday 15 January 2012, Jonathan Nieder wrote:
[...]
apt-get install iw iproute
for completeness, you need wpasupplicant as well for the 3rd stanza
of /etc/network/interfaces to work (and you want crda (>= wheezy) to
access channel 11-13/ most of the 5 GHz band):

# apt-get install iw iproute wpasupplicant crda

ip link set wlan0 up
iw dev wlan0 scan
iw dev wlan0 connect -w myfavoriteaccesspoint
cat>>/etc/network/interfaces<<-\EOF
        iface library inet dhcp
        wireless-essid CPLWIFI

        iface home inet dhcp
        wireless-essid Elephant
        wireless-key Mouse

        iface cafe inet dhcp
Small syntax fix

        wpa-driver nl
This should read
        wpa-driver nl80211

the only valid choices here are:
- nl80211       all modern mac80211 based drivers.
- wext  legacy and staging drivers - don't use, unless you have to.
                it's preferred to just leave out wpa-driver over hardcoding
                it to wext, because staging drivers will switch to nl80211,
                once they leave staging.
- wired only for encrypted wired ethernet, basically not used
                in practice.

Setting wpa-driver explicitly is no longer necessary since
wpasupplicant 0.7.x (>= wheezy), it will default to nl80211 and fall
back to wext as needed). However it was needed for wpasupplicant
<=0.6.x from squeeze and earlier (well, at least lenny and squeeze).

        wpa-ssid Cafe Foo Bar
        wpa-psk secretsecretpassword
EOF
ip link set wlan0 down
ifup wlan0=cafe
While I have no personal experience with iwlagn/ iwlwifi, it might help
to load the module with "11n_disable=1", as there've been a couple of
problems with both the firmware and the kernel module in recent times.

Regards
        Stefan Lippers-Hollmann


I've installed all packages succesfuly
after that:
$ sudo ip link set wlan0 up
$ sudo iw dev wlan0 scan
BSS XX:XX:XX:XX:00:03 (on wlan0)
    TSF: 115383069737 usec (1d, 08:03:03)
    freq: 2457
    beacon interval: 100
    capability: ESS Privacy ShortSlotTime (0x0411)
    signal: -26.00 dBm
    last seen: 200 ms ago
    Information elements from Probe Response frame:
    SSID: repeat
    Supported rates: 1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0
    DS Parameter set: channel 10
    ERP: Barker_Preamble_Mode
    Extended supported rates: 6.0 9.0 12.0 48.0
BSS XX:XX:XX:XX:18:ed (on wlan0)
----- output cuted off -----

$ sudo iw dev wlan0 connect -w repeat
wlan0 (phy #0): failed to connect, status: 1: Unspecified failure


$ sudo iw --debug dev wlan0 connect -w repeat
-- Debug: Sent Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 40
    .nlmsg_type = 22 <0x16>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1326737888
    .nlmsg_pid = 5517
  [PAYLOAD] 24 octets
2e 00 00 00 08 00 03 00 03 00 00 00 0a 00 34 00 72 65 ..............4.re
    70 65 61 74 00 00                                     peat..
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 160
    .nlmsg_type = 22 <0x16>
    .nlmsg_flags = 0 <>
    .nlmsg_seq = 0
    .nlmsg_pid = 0
  [PAYLOAD] 144 octets
21 01 00 00 08 00 01 00 00 00 00 00 08 00 03 00 03 00 !................. 00 00 10 00 2d 00 0a 00 00 00 72 65 70 65 61 74 00 00 ....-.....repeat.. 6c 00 2c 00 08 00 00 00 6c 09 00 00 08 00 01 00 71 09 l.,.....l.......q. 00 00 08 00 02 00 76 09 00 00 08 00 03 00 7b 09 00 00 ......v.......{... 08 00 04 00 80 09 00 00 08 00 05 00 85 09 00 00 08 00 .................. 06 00 8a 09 00 00 08 00 07 00 8f 09 00 00 08 00 08 00 .................. 94 09 00 00 08 00 09 00 99 09 00 00 08 00 0a 00 9e 09 .................. 00 00 08 00 0b 00 a3 09 00 00 08 00 0c 00 a8 09 00 00 .................. --------------------------- END NETLINK MESSAGE ---------------------------
-- Error: Invalid message: type=0x16 length=160 flags=<> sequence-nr=0 pid=0
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 36
    .nlmsg_type = 2 <ERROR>
    .nlmsg_flags = 0 <>
    .nlmsg_seq = 1326737888
    .nlmsg_pid = 5517
  [ERRORMSG] 20 octets
    .error = 0 "Success"
  [ORIGINAL MESSAGE] 16 octets
    .nlmsg_len = 16
    .nlmsg_type = 22 <0x16>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1326737888
    .nlmsg_pid = 5517
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 44
    .nlmsg_type = 22 <0x16>
    .nlmsg_flags = 0 <>
    .nlmsg_seq = 0
    .nlmsg_pid = 0
  [PAYLOAD] 28 octets
2e 01 00 00 08 00 01 00 00 00 00 00 08 00 03 00 03 00 ..................
    00 00 06 00 48 00 01 00 00 00                         ....H.....
--------------------------- END NETLINK MESSAGE ---------------------------
wlan0 (phy #0): failed to connect, status: 1: Unspecified failure



$ sudo rmmod iwlagn
$ sudo modprobe iwlagn 11n_disable=1
$ sudo ip link set wlan0 up
$ sudo iw dev wlan0 scan
.......................
Extended supported rates: 9.0 18.0 48.0 54.0
BSS XX:XX:XX:XX:00:03 (on wlan0)
    TSF: 120571129206 usec (1d, 09:29:31)
    freq: 2457
    beacon interval: 100
    capability: ESS Privacy ShortSlotTime (0x0411)
    signal: -19.00 dBm
    last seen: 228 ms ago
    Information elements from Probe Response frame:
    SSID: repeat
    Supported rates: 1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0
    DS Parameter set: channel 10
    ERP: Barker_Preamble_Mode
    Extended supported rates: 6.0 9.0 12.0 48.0
BSS XX:XX:XX:XX:e3:e8 (on wlan0)
.........................
$ sudo iw dev wlan0 connect -w repeat
wlan0 (phy #2): failed to connect, status: 1: Unspecified failure
$ sudo iw --debug dev wlan0 connect -w repeat
-- Debug: Sent Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 40
    .nlmsg_type = 22 <0x16>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1326742934
    .nlmsg_pid = 6467
  [PAYLOAD] 24 octets
2e 00 00 00 08 00 03 00 05 00 00 00 0a 00 34 00 72 65 ..............4.re
    70 65 61 74 00 00                                     peat..
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 160
    .nlmsg_type = 22 <0x16>
    .nlmsg_flags = 0 <>
    .nlmsg_seq = 0
    .nlmsg_pid = 0
  [PAYLOAD] 144 octets
21 01 00 00 08 00 01 00 02 00 00 00 08 00 03 00 05 00 !................. 00 00 10 00 2d 00 0a 00 00 00 72 65 70 65 61 74 00 00 ....-.....repeat.. 6c 00 2c 00 08 00 00 00 6c 09 00 00 08 00 01 00 71 09 l.,.....l.......q. 00 00 08 00 02 00 76 09 00 00 08 00 03 00 7b 09 00 00 ......v.......{... 08 00 04 00 80 09 00 00 08 00 05 00 85 09 00 00 08 00 .................. 06 00 8a 09 00 00 08 00 07 00 8f 09 00 00 08 00 08 00 .................. 94 09 00 00 08 00 09 00 99 09 00 00 08 00 0a 00 9e 09 .................. 00 00 08 00 0b 00 a3 09 00 00 08 00 0c 00 a8 09 00 00 .................. --------------------------- END NETLINK MESSAGE ---------------------------
-- Error: Invalid message: type=0x16 length=160 flags=<> sequence-nr=0 pid=0
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 36
    .nlmsg_type = 2 <ERROR>
    .nlmsg_flags = 0 <>
    .nlmsg_seq = 1326742934
    .nlmsg_pid = 6467
  [ERRORMSG] 20 octets
    .error = 0 "Success"
  [ORIGINAL MESSAGE] 16 octets
    .nlmsg_len = 16
    .nlmsg_type = 22 <0x16>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1326742934
    .nlmsg_pid = 6467
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 44
    .nlmsg_type = 22 <0x16>
    .nlmsg_flags = 0 <>
    .nlmsg_seq = 0
    .nlmsg_pid = 0
  [PAYLOAD] 28 octets
2e 01 00 00 08 00 01 00 02 00 00 00 08 00 03 00 05 00 ..................
    00 00 06 00 48 00 01 00 00 00                         ....H.....
--------------------------- END NETLINK MESSAGE ---------------------------
wlan0 (phy #2): failed to connect, status: 1: Unspecified failure




--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to