Return-path: Received: from idris.smile.fr ([91.216.209.19]:50538 "EHLO idris.smile.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932683AbcFOOSG (ORCPT ); Wed, 15 Jun 2016 10:18:06 -0400 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_a760c89426eb4bf9b2b580d9f9411a44" Date: Wed, 15 Jun 2016 16:17:57 +0200 From: Vincent CESSON To: Raymond Hayes Cc: Amitkumar Karwar , , Shengzhen Li Subject: Re: =?UTF-8?Q?mwifiex+wpa=5Fsupplicant=20cannot=20set=20up=20WPA/?= =?UTF-8?Q?WPA=32=20ADHOC?= In-Reply-To: References: <4eed6159efdc3f86e4f549bb31ce6a74@smile.fr> <053ed5ba9d69bc5e6f36ed7e95526663@smile.fr> <4fdb1514a02744ad9b8ac11b96e57130@SC-EXCH04.marvell.com> <404feff5a5bca118ba53b69301700e2f@smile.fr> <2259a8e8239c9497571d30fa86e7f84c@smile.fr> Message-ID: <10ea53e5030e54e51caa61380bd24c47@smile.fr> (sfid-20160615_161814_974067_3B8FA200) Sender: linux-wireless-owner@vger.kernel.org List-ID: --=_a760c89426eb4bf9b2b580d9f9411a44 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8; format=flowed I set a successful AP network with WPA-PSK (see conf and log attached). As you can see on log, the message "Could not set station 48:45:20:3b:31:75 flags for kernel driver" appears too, but the connection is OK. Le 2016-06-15 13:35, Raymond Hayes a écrit : > The logs were from wpa_supplicant so I suggest starting there; but > the problem could be on either side, so you'll probably have to look > into mwiflex too. > > Ray > > On Wednesday, June 15, 2016, Vincent CESSON > wrote: > >> Hi Raymond, >> >> Who is trying to mark the peer authorized? Should I look into mwifiex >> driver? cfg80211.ko? libnl? wpa_supplicant? I am a bit lost among all >> these elements. >> >> Vincent >> >> Le 2016-06-14 02:30, Raymond Hayes a écrit : >> >>> From the RSN log, the dual 4-way handshakes succeeded, but the GTK >>> was >>> not installed: >>> >>> nl80211: set_key failed; err=-22 Invalid argument) >>> >>> and it looks like there was a problem marking the peer authorized: >>> >>> AUTH: 48:45:20:3b:31:75 authorizing port >>> Could not set station 48:45:20:3b:31:75 flags for kernel driver >>> (errno=11) >>> >>> Ray >>> >>> On Mon, Jun 13, 2016 at 7:42 AM, Vincent CESSON >>> wrote: >>> >>>> Hi Amitkumar, >>>> >>>> Here are the wpa_supplicant logs (with CONFIG_IBSS_RSN=y enabled) >>>> from the >>>> two devices. Beside wpa_supplicant, I manually set IPs 192.168.1.xy >>>> with >>>> command "ifconfig mlan0 192.168.1.xy" and then I try to ping each >>>> other, >>>> without success. >>>> >>>> Vincent >>>> >>>> Le 2016-06-13 15:40, Amitkumar Karwar a écrit : >>>> >>>>> Hi Vincent, >>>>> >>>>>> From: Vincent CESSON [mailto:vincent.cesson@smile.fr] >>>>>> Sent: Monday, June 13, 2016 7:09 PM >>>>>> To: Amitkumar Karwar >>>>>> Cc: Raymond Hayes; linux-wireless@vger.kernel.org >>>>>> Subject: RE: mwifiex+wpa_supplicant cannot set up WPA/WPA2 ADHOC >>>>>> >>>>>> About the strange behaviour with the two devices connecting >>>>>> despite the >>>>>> bad passwords, I made a little mistake: on the device 2, >>>>>> wpa_supplicant >>>>>> was not built with option CONFIG_IBSS_RSN=y. But still, device 1 >>>>>> should >>>>>> not accept device 2... >>>>>> >>>>>> Note that with option CONFIG_IBSS_RSN=y enabled on both devices, >>>>>> WPA-PSK >>>>>> connection does not work, even with the right password... >>>>> >>>>> I see. Please share the wpa_supplicant logs with CONFIG_IBSS_RSN=y >>>>> enabled for analysis. >>>>> >>>>> Regards, >>>>> Amitkumar --=_a760c89426eb4bf9b2b580d9f9411a44 Content-Transfer-Encoding: base64 Content-Type: text/plain; name=hostapd-rsn.conf Content-Disposition: attachment; filename=hostapd-rsn.conf; size=188 c3NpZD10ZXN0X3BjbV93cGEyX3ZjZQppbnRlcmZhY2U9dWFwMApkcml2ZXI9bmw4MDIxMQpod19t b2RlPWEKY2hhbm5lbD00OAppZWVlODAyMTFuPTEKd21tX2VuYWJsZWQ9MQp3cGE9Mgp3cGFfcGFz c3BocmFzZT1wYXNzd29yZAp3cGFfa2V5X21nbXQ9V1BBLVBTSwp3cGFfcGFpcndpc2U9Q0NNUApy c25fcGFpcndpc2U9Q0NNUAo= --=_a760c89426eb4bf9b2b580d9f9411a44 Content-Transfer-Encoding: base64 Content-Type: text/plain; name=hostapd-rsn.log Content-Disposition: attachment; filename=hostapd-rsn.log; size=6075 bmw4MDIxMTogRXZlbnQgbWVzc2FnZSBhdmFpbGFibGUKbmw4MDIxMTogRHJ2IEV2ZW50IDE5IChO TDgwMjExX0NNRF9ORVdfU1RBVElPTikgcmVjZWl2ZWQgZm9yIHVhcDAKbmw4MDIxMTogTmV3IHN0 YXRpb24gNDg6NDU6MjA6M2I6MzE6NzUKbmw4MDIxMTogQXNzb2MgUmVxIElFcyAtIGhleGR1bXAo bGVuPTk4KTogMDAgMTEgNzQgNjUgNzMgNzQgNWYgNzAgNjMgNmQgNWYgNzcgNzAgNjEgMzIgNWYg NzYgNjMgNjUgMDEgMDggMGMgMTIgMTggMjQgMzAgNDggNjAgNmMgMzAgMTQgMDEgMDAgMDAgMGYg YWMgMDQgMDEgMDAgMDAgMGYgYWMgMDQgMDEgMDAgMDAgMGYgYWMgMDIgMDAgMDAgMmQgMWEgYWQg MTEgMTcgZmYgZmYgMDAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgMDAg MDAgMDAgMDAgMDAgMDAgMDAgN2YgMDggMDQgMDAgMDAgMDAgMDEgMDAgMDAgNDAgZGQgMDcgMDAg NTAgZjIgMDIgMDAgMDEgMDAKdWFwMDogRXZlbnQgQVNTT0MgKDApIHJlY2VpdmVkCnVhcDA6IFNU QSA0ODo0NToyMDozYjozMTo3NSBJRUVFIDgwMi4xMTogYXNzb2NpYXRlZApTVEEgaW5jbHVkZWQg UlNOIElFIGluIChSZSlBc3NvY1JlcQogIE5ldyBTVEEKbmw4MDIx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