<div dir="ltr">Does on &quot;iw scan&quot; (or wpa_cli scan) instead of killing also help?<div><br></div><div style>Did you try the bg_scan feature?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/2/18 Marc MERLIN <span dir="ltr">&lt;<a href="mailto:marc_hostap@merlins.org" target="_blank">marc_hostap@merlins.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Feb 15, 2013 at 07:43:53PM -0800, Marc MERLIN wrote:<br>
&gt; On Thu, Feb 14, 2013 at 11:28:21PM -0800, Marc MERLIN wrote:<br>
<br>
</div>Could someone give me a clue if I&#39;m hitting bugs in wpa_supplicant (it seems<br>
like it since I have to kill and it works when restarted), or if the problem<br>
might be with the Intel 6300 AGN chip<br>
<br>
Specifically, I&#39;d like to tell the debian folks not to upgrade wpasupplicant<br>
to the newer series and stay with the older versions if I don&#39;t have good<br>
feeling that the new version works properly.<br>
<br>
Thanks,<br>
Marc<br>
<div class="HOEnZb"><div class="h5"><br>
&gt; &gt; Howdy<br>
&gt; &gt;<br>
&gt; &gt; First, the basics:<br>
&gt; &gt;<br>
&gt; &gt; kernel: 3.7.4-amd64-preempt-20121226-fixwd<br>
&gt; &gt; debian-testing<br>
&gt; &gt; wpasupplicant-1.0-3+b2<br>
&gt; &gt;<br>
&gt; &gt; iwlwifi 0000:03:00.0: loaded firmware version 9.221.4.1 build 25532<br>
&gt; &gt; iwldvm: Intel(R) Wireless WiFi Link AGN driver for Linux, in-tree:d<br>
&gt; &gt; iwldvm: Copyright(c) 2003-2012 Intel Corporation<br>
&gt; &gt; iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUG enabled<br>
&gt; &gt; iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUGFS disabled<br>
&gt; &gt; iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEVICE_TRACING disabled<br>
&gt; &gt; iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEVICE_TESTMODE enabled<br>
&gt; &gt; iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_P2P enabled<br>
&gt; &gt; iwlwifi 0000:03:00.0: Detected Intel(R) Centrino(R) Ultimate-N 6300 AGN, REV=0x74<br>
&gt; &gt; iwlwifi 0000:03:00.0: L1 Enabled; Disabling L0S<br>
&gt; &gt; iwlwifi 0000:03:00.0: RF_KILL bit toggled to enable radio.<br>
&gt; &gt; iwlwifi 0000:03:00.0: device EEPROM VER=0x43a, CALIB=0x6<br>
&gt; &gt; iwlwifi 0000:03:00.0: Device SKU: 0x1F0<br>
&gt; &gt; iwlwifi 0000:03:00.0: Valid Tx ant: 0x7, Valid Rx ant: 0x7<br>
&gt; &gt;<br>
&gt; &gt; I started with being connected ok to 2C:B0:5D:3C:7D:F1, and walked mostly out of range and close to 2c:b0:5d:a0:c8:a6<br>
&gt; &gt;<br>
&gt; &gt; wpa_supplicant actually did connect to 2c:b0:5d:a0:c8:a6, then I had a few pings that went through the<br>
&gt; &gt; new AP, and then the pings stopped.<br>
&gt; &gt; Networking never recovered until after I ran kilall wpa_supplicant.<br>
&gt; &gt; This basically happens every time I roam :(<br>
&gt; &gt;<br>
&gt; &gt; Debian runs it like so:<br>
&gt; &gt; root     14862  0.0  0.0  31024  2828 ?        S    20:59   0:00 /sbin/wpa_supplicant -u -s -O /var/run/wpa_supplicant<br>
&gt; &gt;<br>
&gt; &gt; Should I be overriding what debian does and run it like so instead?<br>
&gt; &gt; /sbin/wpa_supplicant -u -onl80211 -O/var/run/wpa_supplicant -f /var/log/wpa_supplicant.log<br>
&gt; So, I tried that, and it didn&#39;t help:<br>
&gt;<br>
&gt; Roaming works:<br>
&gt; wlan0: SME: Trying to authenticate with 2c:b0:5d:a0:c8:a6 (SSID=&#39;magicnet-a&#39; freq=5785 MHz)<br>
&gt; wlan0: Trying to associate with 2c:b0:5d:a0:c8:a6 (SSID=&#39;magicnet-a&#39; freq=5785 MHz)<br>
&gt; wlan0: Associated with 2c:b0:5d:a0:c8:a6<br>
&gt; wlan0: WPA: Key negotiation completed with 2c:b0:5d:a0:c8:a6 [PTK=CCMP GTK=CCMP]<br>
&gt; wlan0: CTRL-EVENT-CONNECTED - Connection to 2c:b0:5d:a0:c8:a6 completed (reauth) [id=0 id_str=]<br>
&gt;<br>
&gt;<br>
&gt; Feb 15 19:40:06 gandalfthegreat NetworkManager[18472]: &lt;info&gt; (wlan0): supplicant interface state: 4-way handshake -&gt; completed<br>
&gt; Feb 15 19:40:06 gandalfthegreat kernel: [388631.790948] cfg80211: Found new beacon on frequency: 5785 MHz (Ch 157) on phy0<br>
&gt; Feb 15 19:40:09 gandalfthegreat NetworkManager[18472]: &lt;info&gt; (wlan0): roamed from BSSID 2C:B0:5D:3C:7D:F1 (magicnet-a) to 2C:B0:5D:A0:C8:A6 (magicnet-a)<br>
&gt;<br>
&gt; I get 2 pings out after connecting to the new AP, and then the<br>
&gt; connection hangs.<br>
&gt;<br>
&gt; A while later wpasupplicant goes back to the old unusable AP:<br>
&gt;<br>
&gt; wlan0: WPA: Group rekeying completed with 2c:b0:5d:a0:c8:a6 [GTK=CCMP]<br>
&gt; wlan0: WPA: Group rekeying completed with 2c:b0:5d:a0:c8:a6 [GTK=CCMP]<br>
&gt; wlan0: WPA: Group rekeying completed with 2c:b0:5d:a0:c8:a6 [GTK=CCMP]<br>
&gt; wlan0: WPA: Group rekeying completed with 2c:b0:5d:a0:c8:a6 [GTK=CCMP]<br>
&gt; wlan0: CTRL-EVENT-DISCONNECTED bssid=2c:b0:5d:a0:c8:a6 reason=2<br>
&gt; wlan0: SME: Trying to authenticate with 2c:b0:5d:3c:7d:f1 (SSID=&#39;magicnet-a&#39; freq=5745 MHz)<br>
&gt; wlan0: Trying to associate with 2c:b0:5d:3c:7d:f1 (SSID=&#39;magicnet-a&#39; freq=5745 MHz)<br>
&gt; wlan0: Associated with 2c:b0:5d:3c:7d:f1<br>
&gt; wlan0: WPA: Key negotiation completed with 2c:b0:5d:3c:7d:f1 [PTK=CCMP GTK=CCMP]<br>
&gt; wlan0: CTRL-EVENT-CONNECTED - Connection to 2c:b0:5d:3c:7d:f1 completed (reauth) [id=0 id_str=]<br>
&gt; Feb 15 19:41:00 gandalfthegreat kernel: [388685.212350] iwlwifi 0000:03:00.0: fail to flush all tx fifo queues<br>
&gt; Feb 15 19:41:00 gandalfthegreat kernel: [388685.212462] wlan0: deauthenticated from 2c:b0:5d:a0:c8:a6 (Reason: 2)<br>
&gt; (...)<br>
&gt; Feb 15 19:41:02 gandalfthegreat kernel: [388687.455482] wlan0: authenticate with 2c:b0:5d:3c:7d:f1<br>
&gt; Feb 15 19:41:02 gandalfthegreat NetworkManager[18472]: &lt;info&gt; (wlan0): supplicant interface state: scanning -&gt; authenticating<br>
&gt; Feb 15 19:41:02 gandalfthegreat kernel: [388687.487733] wlan0: send auth to 2c:b0:5d:3c:7d:f1 (try 1/3)<br>
&gt; Feb 15 19:41:02 gandalfthegreat kernel: [388687.689936] wlan0: send auth to 2c:b0:5d:3c:7d:f1 (try 2/3)<br>
&gt; Feb 15 19:41:02 gandalfthegreat kernel: [388687.690640] wlan0: authenticated<br>
&gt; Feb 15 19:41:02 gandalfthegreat NetworkManager[18472]: &lt;info&gt; (wlan0): supplicant interface state: authenticating -&gt; associating<br>
&gt; Feb 15 19:41:02 gandalfthegreat kernel: [388687.693975] wlan0: associate with 2c:b0:5d:3c:7d:f1 (try 1/3)<br>
&gt; Feb 15 19:41:02 gandalfthegreat kernel: [388687.897369] wlan0: associate with 2c:b0:5d:3c:7d:f1 (try 2/3)<br>
&gt; Feb 15 19:41:02 gandalfthegreat kernel: [388687.905992] wlan0: RX AssocResp from 2c:b0:5d:3c:7d:f1 (capab=0x11 status=0 aid=1)<br>
&gt; Feb 15 19:41:02 gandalfthegreat kernel: [388687.909358] wlan0: associated<br>
&gt;<br>
&gt; and then things don&#39;t work either because that AP is too far.<br>
&gt;<br>
&gt; So why is roaming broken for me and how do I fix it?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Marc<br>
&gt; --<br>
&gt; &quot;A mouse is a device used to point at the xterm you want to type in&quot; - A.S.R.<br>
&gt; Microsoft is to operating systems ....<br>
&gt;                                       .... what McDonalds is to gourmet cooking<br>
&gt; Home page: <a href="http://marc.merlins.org/" target="_blank">http://marc.merlins.org/</a><br>
&gt; _______________________________________________<br>
&gt; HostAP mailing list<br>
&gt; <a href="mailto:HostAP@lists.shmoo.com">HostAP@lists.shmoo.com</a><br>
&gt; <a href="http://lists.shmoo.com/mailman/listinfo/hostap" target="_blank">http://lists.shmoo.com/mailman/listinfo/hostap</a><br>
<br>
--<br>
&quot;A mouse is a device used to point at the xterm you want to type in&quot; - A.S.R.<br>
Microsoft is to operating systems ....<br>
                                      .... what McDonalds is to gourmet cooking<br>
Home page: <a href="http://marc.merlins.org/" target="_blank">http://marc.merlins.org/</a><br>
_______________________________________________<br>
HostAP mailing list<br>
<a href="mailto:HostAP@lists.shmoo.com">HostAP@lists.shmoo.com</a><br>
<a href="http://lists.shmoo.com/mailman/listinfo/hostap" target="_blank">http://lists.shmoo.com/mailman/listinfo/hostap</a><br>
</div></div></blockquote></div><br></div>