From patchwork Tue May 24 14:56:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: poma X-Patchwork-Id: 9133811 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 115CB607D5 for ; Tue, 24 May 2016 14:56:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 007AE2827A for ; Tue, 24 May 2016 14:56:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E91EC2828B; Tue, 24 May 2016 14:56:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CBE7D2827A for ; Tue, 24 May 2016 14:56:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756162AbcEXO4N (ORCPT ); Tue, 24 May 2016 10:56:13 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35207 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751941AbcEXO4L (ORCPT ); Tue, 24 May 2016 10:56:11 -0400 Received: by mail-wm0-f67.google.com with SMTP id f75so6972712wmf.2 for ; Tue, 24 May 2016 07:56:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=eFcb5KyXvWhJ9cBMsI+uaSqfEiYQOERapQ5Uf4zXjM0=; b=AOpVfBEHiFUzwtZu1sWPBtfL7mhYa0GLmThId7GbVAPORfRtL7Q9dXjkW/rxI2vL5f oV2qyntODOHH/7SrPrkaaJ+k5+CyIMraumkbalXc9ijGDnaN1CisSNYyCFiCl1Mfs0LY 4w9aMIW7Nv6JUCEFlb0YLWjiBS9mco1LBoUW+Mr+XAli9EC8c36QEaAs0O2P6OQvV24u kXSAuF7ptiqMOM8QjL3b2MyURcM/fJeoJZ9sguKmqTogZ4tMy9eYprRxFOcENoS86p6e wsKScF1+fJqHbUUG/5WLPXPEuYZg2eFstDnmlLCVBZVibkE1YJbit1kMAoEDziE27lOn WJ2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=eFcb5KyXvWhJ9cBMsI+uaSqfEiYQOERapQ5Uf4zXjM0=; b=D1K3VHUxzNc6Opmj+dR8IAwx32iFtrFJbq08LnhYadejq6sgYXi2vOyI6x6AK9inUj frNNhKWU9f69J4qrRetlcBzYINK9MQd6pKVhHUfEXPVbKYEKYh8SACkgJVZkvTkX4vFw ZEO1ozOMeLU6hDKYxdto0f803nBqUXNMTSszCOLpn4F4BSt5/X+fUBrVBJ53/MkAwyWi 3AYn2wSkmyFoDz3uolYu1FbKr5Kx5c64/SQTXkh3Z4gWWVwn4yyBfiXoJV8LyG+Af2xj hkDwZ8stAPMeF9FF2HTy6HHqs3L7vLf2o+oJhKBJbL25FY7+5muDdORLYXJTBClHo2ms JYsA== X-Gm-Message-State: ALyK8tLD5zDS/i8nLnFaYm4OHXJhZeh8H6iiVASp8g8bQyMqL/F5CJHYu+cEFNja0lkUxw== X-Received: by 10.194.205.105 with SMTP id lf9mr4755147wjc.25.1464101768404; Tue, 24 May 2016 07:56:08 -0700 (PDT) Received: from localhost (iskon7898.duo.carnet.hr. [31.147.126.218]) by smtp.gmail.com with ESMTPSA id y1sm3632333wjy.36.2016.05.24.07.56.06 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 May 2016 07:56:07 -0700 (PDT) Subject: Re: How to activate MAC address randomization? To: Dan Williams , Thomas Haller , Chris Laprise , networkmanager-list@gnome.org, Lubomir Rintel , linux-wireless , "hostap@lists.infradead.org" , Kuba Kicinski References: <5723BF90.4010701@openmailbox.org> <1463091417.20553.1.camel@redhat.com> <573A3674.50809@openmailbox.org> <9901c3c7-5c73-9d13-72be-1a6b7ddf82e1@gmail.com> <1463582960.4426.11.camel@redhat.com> <1463653326.4426.31.camel@redhat.com> <66a6e6fa-a31b-33f5-4c07-8f456811bf15@gmail.com> <1463765815.32277.21.camel@redhat.com> <7f4c8daf-3ec3-f960-cbad-9cd819b559a5@gmail.com> <2167f384-ae39-6ecd-91aa-470ce19cd8d7@gmail.com> <086327a1-8410-519d-205c-f65c51843d10@gmail.com> From: poma Message-ID: <2d8b2e38-56bd-e64f-a524-e0f95ca809e9@gmail.com> Date: Tue, 24 May 2016 16:56:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <086327a1-8410-519d-205c-f65c51843d10@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On 24.05.2016 16:46, poma wrote: > On 24.05.2016 13:22, poma wrote: >> >> [...] NetworkManager [...] >> >> WPA Supplicant comparative test >> - wpa_supplicant v2.6-devel git a26c9c2 2016-05-20 >> - Linux 4.6 >> - QEMU emulator version 2.6.0 (Hotspot) >> >> >> Pre-association / Scanning random MAC address >> >> = Client (mt7601u) = >> >> # grep -v '^#\|^$' /etc/wpa_supplicant.conf >> ctrl_interface=/var/run/wpa_supplicant >> ctrl_interface_group=wheel >> preassoc_mac_addr=1 >> network={ >> ssid="WiFiRd" >> bssid=ee:dd:cc:bb:aa:00 >> key_mgmt=WPA-PSK >> psk="**********" >> } >> >> >> # wpa_supplicant -i wlp0s2f1u3 -c /etc/wpa_supplicant.conf -d -f wpasuplog.txt >> >> >> # grep -i 'mac\|rand\|connected' wpasuplog.txt >> random: Trying to read entropy from /dev/random >> preassoc_mac_addr=1 >> wlp0s2f1u3: Own MAC address: 00:aa:bb:cc:dd:ee >> wlp0s2f1u3: WPS: UUID based on MAC address: [...] >> EAPOL: SUPP_PAE entering state DISCONNECTED >> wlp0s2f1u3: State: DISCONNECTED -> DISCONNECTED >> random: Got 20/20 bytes from /dev/random >> wlp0s2f1u3: State: DISCONNECTED -> SCANNING >> nl80211: set_mac_addr for wlp0s2f1u3 to 4a:b1:d6:28:4c:90 >> wlp0s2f1u3: Using random MAC address 4a:b1:d6:28:4c:90 >> nl80211: set_mac_addr for wlp0s2f1u3 to 00:aa:bb:cc:dd:ee >> wlp0s2f1u3: Using permanent MAC address >> wlp0s2f1u3: CTRL-EVENT-CONNECTED - Connection to ee:dd:cc:bb:aa:00 completed [id=0 id_str=] >> ... >> >> >> >> = Hotspot (rt2800usb) = >> >> # grep -v '^#\|^$' /etc/wpa_supplicant.conf >> ctrl_interface=/var/run/wpa_supplicant >> ctrl_interface_group=wheel >> network={ >> ssid="WiFiRd" >> key_mgmt=WPA-PSK >> psk="**********" >> mode=2 >> } >> >> >> # wpa_supplicant -i wlp2s2f7u2 -c /etc/wpa_supplicant.conf -d -f wpasuplog.txt >> >> >> # grep -i '4a:b1:d6:28:4c:90\|00:aa:bb:cc:dd:ee' wpasuplog.txt >> nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=4a:b1:d6:28:4c:90 bssid=ff:ff:ff:ff:ff:ff freq=2462 ssi_signal=-19 fc=0x40 seq_ctrl=0x3b20 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=83 >> nl80211: send_mlme - da= 4a:b1:d6:28:4c:90 noack=1 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0x50 (WLAN_FC_STYPE_PROBE_RESP) nlmode=3 >> nl80211: RX frame da=ee:dd:cc:bb:aa:00 sa=00:aa:bb:cc:dd:ee bssid=ee:dd:cc:bb:aa:00 freq=2462 ssi_signal=-19 fc=0x8b0 seq_ctrl=0x3b60 stype=11 (WLAN_FC_STYPE_AUTH) len=30 >> ... >> wlp2s2f7u2: AP-STA-CONNECTED 00:aa:bb:cc:dd:ee >> ... >> >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> >> >> Association / Connection random MAC address >> >> >> = Client (mt7601u) = >> >> # grep -v '^#\|^$' /etc/wpa_supplicant.conf >> ctrl_interface=/var/run/wpa_supplicant >> ctrl_interface_group=wheel >> mac_addr=1 >> network={ >> ssid="WiFiRd" >> bssid=ee:dd:cc:bb:aa:00 >> key_mgmt=WPA-PSK >> psk="**********" >> } >> >> >> # wpa_supplicant -i wlp0s2f1u3 -c /etc/wpa_supplicant.conf -d -f wpasuplog.txt >> >> >> # grep -i 'mac\|rand\|connected' wpasuplog.txt >> random: Trying to read entropy from /dev/random >> mac_addr=1 >> wlp0s2f1u3: Own MAC address: 00:aa:bb:cc:dd:ee >> wlp0s2f1u3: WPS: UUID based on MAC address: [...] >> EAPOL: SUPP_PAE entering state DISCONNECTED >> wlp0s2f1u3: State: DISCONNECTED -> DISCONNECTED >> random: Got 20/20 bytes from /dev/random >> wlp0s2f1u3: State: DISCONNECTED -> SCANNING >> nl80211: set_mac_addr for wlp0s2f1u3 to 0e:5d:07:b0:73:a6 >> wlp0s2f1u3: Using random MAC address 0e:5d:07:b0:73:a6 >> wlp0s2f1u3: State: AUTHENTICATING -> DISCONNECTED >> wlp0s2f1u3: State: DISCONNECTED -> SCANNING >> wlp0s2f1u3: State: AUTHENTICATING -> DISCONNECTED >> wlp0s2f1u3: State: DISCONNECTED -> SCANNING >> wlp0s2f1u3: State: AUTHENTICATING -> DISCONNECTED >> wlp0s2f1u3: State: DISCONNECTED -> SCANNING >> wlp0s2f1u3: State: AUTHENTICATING -> DISCONNECTED >> wlp0s2f1u3: State: DISCONNECTED -> SCANNING >> wlp0s2f1u3: State: AUTHENTICATING -> DISCONNECTED >> wlp0s2f1u3: State: DISCONNECTED -> SCANNING >> wlp0s2f1u3: State: AUTHENTICATING -> DISCONNECTED >> wlp0s2f1u3: Request to deauthenticate - bssid=00:00:00:00:00:00 pending_bssid=00:00:00:00:00:00 reason=3 state=DISCONNECTED >> wlp0s2f1u3: State: DISCONNECTED -> DISCONNECTED >> >> >> >> = Hotspot (rt2800usb) = >> >> # grep -v '^#\|^$' /etc/wpa_supplicant.conf >> ctrl_interface=/var/run/wpa_supplicant >> ctrl_interface_group=wheel >> network={ >> ssid="WiFiRd" >> key_mgmt=WPA-PSK >> psk="**********" >> mode=2 >> } >> >> >> # wpa_supplicant -i wlp2s2f7u2 -c /etc/wpa_supplicant.conf -d -f wpasuplog.txt >> >> >> # grep -i acknowledge wpasuplog.txt >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> >> >> # grep -i '00:aa:bb:cc:dd:ee\|0e:5d:07:b0:73:a6' wpasuplog.txt >> nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=00:aa:bb:cc:dd:ee bssid=ff:ff:ff:ff:ff:ff freq=2462 ssi_signal=-17 fc=0x40 seq_ctrl=0x3c30 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=83 >> nl80211: send_mlme - da= 00:aa:bb:cc:dd:ee noack=1 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0x50 (WLAN_FC_STYPE_PROBE_RESP) nlmode=3 >> nl80211: RX frame da=ee:dd:cc:bb:aa:00 sa=0e:5d:07:b0:73:a6 bssid=ee:dd:cc:bb:aa:00 freq=2462 ssi_signal=-15 fc=0xb0 seq_ctrl=0x3c60 stype=11 (WLAN_FC_STYPE_AUTH) len=30 >> authentication: STA=0e:5d:07:b0:73:a6 auth_alg=0 auth_transaction=1 status_code=0 wep=0 seq_ctrl=0x3c60 >> ap_sta_add: register ap_handle_timer timeout for 0e:5d:07:b0:73:a6 (300 seconds - ap_max_inactivity) >> nl80211: sta_remove -> DEL_STATION wlp2s2f7u2 0e:5d:07:b0:73:a6 --> -2 (No such file or directory) >> nl80211: Add STA 0e:5d:07:b0:73:a6 >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - authentication OK (open system) >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - MLME-AUTHENTICATE.indication(0e:5d:07:b0:73:a6, OPEN_SYSTEM) >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - MLME-DELETEKEYS.request(0e:5d:07:b0:73:a6) >> authentication reply: STA=0e:5d:07:b0:73:a6 auth_alg=0 auth_transaction=2 resp=0 (IE len=0) >> nl80211: send_mlme - da= 0e:5d:07:b0:73:a6 noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0xb0 (WLAN_FC_STYPE_AUTH) nlmode=3 >> nl80211: New station 0e:5d:07:b0:73:a6 >> nl80211: RX frame da=ee:dd:cc:bb:aa:00 sa=0e:5d:07:b0:73:a6 bssid=ee:dd:cc:bb:aa:00 freq=2462 ssi_signal=-15 fc=0x8b0 seq_ctrl=0x3c70 stype=11 (WLAN_FC_STYPE_AUTH) len=30 >> authentication: STA=0e:5d:07:b0:73:a6 auth_alg=0 auth_transaction=1 status_code=0 wep=0 seq_ctrl=0x3c70 retry >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - authentication OK (open system) >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - MLME-AUTHENTICATE.indication(0e:5d:07:b0:73:a6, OPEN_SYSTEM) >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - MLME-DELETEKEYS.request(0e:5d:07:b0:73:a6) >> authentication reply: STA=0e:5d:07:b0:73:a6 auth_alg=0 auth_transaction=2 resp=0 (IE len=0) >> nl80211: send_mlme - da= 0e:5d:07:b0:73:a6 noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0xb0 (WLAN_FC_STYPE_AUTH) nlmode=3 >> wlp2s2f7u2: EVENT_TX_STATUS dst=0e:5d:07:b0:73:a6 type=0 stype=11 >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> wlp2s2f7u2: EVENT_TX_STATUS dst=0e:5d:07:b0:73:a6 type=0 stype=11 >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> nl80211: RX frame da=ee:dd:cc:bb:aa:00 sa=0e:5d:07:b0:73:a6 bssid=ee:dd:cc:bb:aa:00 freq=2462 ssi_signal=-15 fc=0x8b0 seq_ctrl=0x3c80 stype=11 (WLAN_FC_STYPE_AUTH) len=30 >> authentication: STA=0e:5d:07:b0:73:a6 auth_alg=0 auth_transaction=1 status_code=0 wep=0 seq_ctrl=0x3c80 retry >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - authentication OK (open system) >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - MLME-AUTHENTICATE.indication(0e:5d:07:b0:73:a6, OPEN_SYSTEM) >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - MLME-DELETEKEYS.request(0e:5d:07:b0:73:a6) >> authentication reply: STA=0e:5d:07:b0:73:a6 auth_alg=0 auth_transaction=2 resp=0 (IE len=0) >> nl80211: send_mlme - da= 0e:5d:07:b0:73:a6 noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0xb0 (WLAN_FC_STYPE_AUTH) nlmode=3 >> nl80211: RX frame da=ee:dd:cc:bb:aa:00 sa=0e:5d:07:b0:73:a6 bssid=ee:dd:cc:bb:aa:00 freq=2462 ssi_signal=-15 fc=0x8b0 seq_ctrl=0x3c90 stype=11 (WLAN_FC_STYPE_AUTH) len=30 >> authentication: STA=0e:5d:07:b0:73:a6 auth_alg=0 auth_transaction=1 status_code=0 wep=0 seq_ctrl=0x3c90 retry >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - authentication OK (open system) >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - MLME-AUTHENTICATE.indication(0e:5d:07:b0:73:a6, OPEN_SYSTEM) >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - MLME-DELETEKEYS.request(0e:5d:07:b0:73:a6) >> authentication reply: STA=0e:5d:07:b0:73:a6 auth_alg=0 auth_transaction=2 resp=0 (IE len=0) >> nl80211: send_mlme - da= 0e:5d:07:b0:73:a6 noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0xb0 (WLAN_FC_STYPE_AUTH) nlmode=3 >> wlp2s2f7u2: EVENT_TX_STATUS dst=0e:5d:07:b0:73:a6 type=0 stype=11 >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> wlp2s2f7u2: EVENT_TX_STATUS dst=0e:5d:07:b0:73:a6 type=0 stype=11 >> hostapd_logger: STA 0e:5d:07:b0:73:a6 - did not acknowledge authentication response >> nl80211: RX frame da=ee:dd:cc:bb:aa:00 sa=0e:5d:07:b0:73:a6 bssid=ee:dd:cc:bb:aa:00 freq=2462 ssi_signal=-15 fc=0x8b0 seq_ctrl=0x3ca0 stype=11 (WLAN_FC_STYPE_AUTH) len=30 >> ... >> >> >> >> Driver's constraint or wpa_supplicant's issue? >> >> > > > = Client (r92su - https://github.com/chunkeey/rtl8192su) = > > # wpa_supplicant -i wlp0s2f1u3 -c /etc/wpa_supplicant.conf > Successfully initialized wpa_supplicant > wlp0s2f1u3: Trying to associate with ee:dd:cc:bb:aa:00 (SSID='WiFiRd' freq=2462 MHz) > wlp0s2f1u3: Associated with ee:dd:cc:bb:aa:00 > wlp0s2f1u3: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0 > wlp0s2f1u3: WPA: Key negotiation completed with ee:dd:cc:bb:aa:00 [PTK=CCMP GTK=TKIP] > wlp0s2f1u3: CTRL-EVENT-CONNECTED - Connection to ee:dd:cc:bb:aa:00 completed [id=0 id_str=] > > > $ macchanger -s wlp0s2f1u3 > Current MAC: 12:21:64:8a:08:ce (unknown) > Permanent MAC: 00:aa:bb:cc:dd:ee ([...]) > > > > = Hotspot (rt2800usb) = > > # wpa_supplicant -i wlp2s2f7u2 -c /etc/wpa_supplicant.conf > Successfully initialized wpa_supplicant > Using interface wlp2s2f7u2 with hwaddr ee:dd:cc:bb:aa:00 and ssid "WiFiRd" > wlp2s2f7u2: interface state UNINITIALIZED->ENABLED > wlp2s2f7u2: AP-ENABLED > wlp2s2f7u2: CTRL-EVENT-CONNECTED - Connection to ee:dd:cc:bb:aa:00 completed [id=0 id_str=] > wlp2s2f7u2: AP-STA-CONNECTED 12:21:64:8a:08:ce > > > > It seems, at the current stage of development, > mt7601u.ko cannot cope with the Association / Connection random MAC address > https://github.com/kuba-moo/mt7601u/commits/master > > So after all, this is driver's constrain, perhaps a bug. > For the record, tricks like this ain't gonna help: --- src/ap/ieee802_11.c | 7 ------- 1 file changed, 7 deletions(-) Bye -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 781afa2..16714a3 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -2662,13 +2662,6 @@ static void handle_auth_cb(struct hostapd_data *hapd, auth_transaction = le_to_host16(mgmt->u.auth.auth_transaction); status_code = le_to_host16(mgmt->u.auth.status_code); - if (!ok) { - hostapd_logger(hapd, mgmt->da, HOSTAPD_MODULE_IEEE80211, - HOSTAPD_LEVEL_NOTICE, - "did not acknowledge authentication response"); - goto fail; - } - if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.auth)) { wpa_printf(MSG_INFO, "handle_auth_cb - too short payload (len=%lu)", (unsigned long) len);