From: Jouni Malinen Date: Mon, 24 Oct 2011 22:55:01 +0300 Subject: [ath9k-devel] Can't associate with a particular AP In-Reply-To: <20111024185932.GG4394@kirya.net> References: <20111004183514.GC3463@kirya.net> <20111005042406.GA3734@kirya.net> <20111015045128.GP20598@kirya.net> <20111016150124.GA13160@kirya.net> <20111023142536.GA4633@kirya.net> <20111024062716.GA14603@infinet.ru> <20111024185932.GG4394@kirya.net> Message-ID: <20111024195501.GA31592@jouni.qca.qualcomm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Mon, Oct 24, 2011 at 08:59:32PM +0200, Julien Valroff wrote: > However, the same AP has several ESSIDs on the same channel (some being > hidden), with the following MAC addresses. The first 4 cells are "mine": > > % iwlist wlan0 scan | grep -e "Cell" -e "ESSID" > Cell 01 - Address: C6:6E:27:A6:BE:A4 > ESSID:"Kirya" > Cell 02 - Address: C6:6E:27:A6:BE:A5 > ESSID:"" > Cell 03 - Address: C6:6E:27:A6:BE:A7 > ESSID:"" > Cell 04 - Address: C6:6E:27:A6:BE:A6 > ESSID:"FreeWifi" These seem to be locally administered addresses and you seemed to report different addresses in previous messages... That's quite interesting AP behavior.. > This prefix belongs to Freebox SA, my internet provider. The prefix C6:6E:27 > is indeed unknown. Googling it leads to my posts on other mailing-lists, but > also some other posts amongst which one bug report [0] the logs of which > shows the exact same MAC address as my AP? Lovely.. While that is obviously possible with locally administered addresses, getting two of those APs within range of each other would result in really lovely mess for the stations. It would be very useful to get a sniffer capture log from a separate radio to see what exactly is happening. I think you mentioned that you have number of other devices that could potentially be used for this, but there was some issues with Wireshark. What radios/drivers do the other devices have? Do they support IEEE 802.11n/HT? (If not, can you temporarily disable that in the AP for the test?) It looked like association with the AP went through, but the following 4-way handshake failed for some reason. Based on the information you've sent so far, it looks like the station did not receive (or the AP did not transmit) EAPOL-Key frames. The odd part was that you did not seem to have issue if you connected this station as the first device to the AP.. You do not need to use Wireshark for the sniffer setup. Assuming the driver supports monitor mode, you can do this from the command line as root: ifconfig wlan0 down iw wlan0 set type monitor iw wlan0 set channel 6 HT20 ifconfig wlan0 up tcpdump -i wlan0 -s 2500 -w /tmp/capture.dump (with the channel obviously set to the one that the AP is using) Then try to connect the AR9285-based station and once that fails, kill tcpdump and send the capture log. If you can easily run this twice, i.e., first with the success case where the station connects as the first device and then with the failure case, this would be even more valuable since it would make it easier to compare the message sequences. -- Jouni Malinen PGP id EFC895FA