2016-04-20 05:43:56

by Luana Borgia

[permalink] [raw]
Subject: Fwd: ap + adhoc not working with Mwifiex driver for sd8887

Hi,
I've successfully managed to get this driver working in adhoc with
olsrd on mlan0 interface, now I'm trying to add a uap0 working at the
same time, with all this command:

rfkill unblock wlan
ip link set uap0 down
ip link set mlan0 down
iw dev mlan0 set type ibss
ip link set mlan0 up
iw dev mlan0 ibss join mesh 2437 fe:de:fe:de:fe:de
olsrd-start.sh
cat <<EOF > /etc/hostapd.conf
ssid=PCM_AP_fede
interface=uap0
driver=nl80211
hw_mode=g
channel=6
EOF
iw phy phy0 interface add uap0 type __ap
hostapd /etc/hostapd.conf &
dnsmasq --interface=uap0 --except-interface=lo --bind-interfaces
--dhcp-range=192.168.3.2,192.168.3.10,12h --conf-file=/dev/null
ip addr add 192.168.3.1/24 broadcast 192.168.3.255 dev uap0

but I get this error after run the hostapd command:

[ 4980.201096] IPv6: ADDRCONF(NETDEV_CHANGE): mlan0: link becomes ready
[ 4983.335467] IPv6: ADDRCONF(NETDEV_UP): uap0: link is not ready
[ 4983.358879] mwifiex_sdio mmc0:0001:1: CMD_RESP: cmd 0xb1 error, result=0x1

adhoc is fine, with the above order of command
but if I run before hostapd and than adhoc part than the issue occur
in the adhoc part.

I'm using the firmware
http://git.marvell.com/?p=mwifiex-firmware.git;a=blob;f=mrvl/sd8887_uapsta.bin;h=165e6c3d34b0c2a630252907a7ac4daf6e13c9d5;hb=HEAD

and the mwifiex from kernel linux 4.1.1

thanks in advance for any support
best regards

Luana


2016-04-20 12:58:56

by Amitkumar Karwar

[permalink] [raw]
Subject: RE: ap + adhoc not working with Mwifiex driver for sd8887

SGkgTHVhbmEsDQoNCj4gRnJvbTogbGludXgtd2lyZWxlc3Mtb3duZXJAdmdlci5rZXJuZWwub3Jn
IFttYWlsdG86bGludXgtd2lyZWxlc3MtDQo+IG93bmVyQHZnZXIua2VybmVsLm9yZ10gT24gQmVo
YWxmIE9mIEx1YW5hIEJvcmdpYQ0KPiBTZW50Oi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+IA0KPiBhZGhvYyBpcyBmaW5lLCB3aXRoIHRoZSBhYm92ZSBvcmRlciBvZiBjb21t
YW5kIGJ1dCBpZiBJIHJ1biBiZWZvcmUNCj4gaG9zdGFwZCBhbmQgdGhhbiBhZGhvYyBwYXJ0IHRo
YW4gdGhlIGlzc3VlIG9jY3VyIGluIHRoZSBhZGhvYyBwYXJ0Lg0KPiANCj4gSSdtIHVzaW5nIHRo
ZSBmaXJtd2FyZQ0KPiBodHRwOi8vZ2l0Lm1hcnZlbGwuY29tLz9wPW13aWZpZXgtDQo+IGZpcm13
YXJlLmdpdDthPWJsb2I7Zj1tcnZsL3NkODg4N191YXBzdGEuYmluO2g9MTY1ZTZjM2QzNGIwYzJh
NjMwMjUyOTA3YQ0KPiA3YWM0ZGFmNmUxM2M5ZDU7aGI9SEVBRA0KPiANCj4gYW5kIHRoZSBtd2lm
aWV4IGZyb20ga2VybmVsIGxpbnV4IDQuMS4xDQo+ICANCg0KSSBjaGVja2VkIHdpdGggb3VyIHRl
YW0uIFdlIGRvbuKAmXQgc3VwcG9ydCBzaW11bHRhbmVvdXMgb3BlcmF0aW9ucyBvZiBBZGhvYyBh
bmQgQVAgbmV0d29yay4NCk9ubHkgb25lIGF0IGEgdGltZSBjYW4gYmUgdXNlZC4NCg0KUmVnYXJk
cywNCkFtaXRrdW1hcg0K

2016-04-20 16:57:33

by Luana Borgia

[permalink] [raw]
Subject: Re: ap + adhoc not working with Mwifiex driver for sd8887

Hi Amitkumar,

thanks for the quick reply..

That's really sad, I hoped that you came with a way to setup the adhoc
in ahdemo, like atheros is doing. :(

Do you know if there is any plan to manage this in future?

Thanks for all support
best regards
Luana


2016-04-20 9:18 GMT-05:00 Amitkumar Karwar <[email protected]>:
> Hi Luana,
>
>> From: [email protected] [mailto:linux-wireless-
>> [email protected]] On Behalf Of Luana Borgia
>> Sent: Wednesday, April 20, 2016 11:14 AM
>> To: [email protected]; Avinash Patil
>> Subject: Fwd: ap + adhoc not working with Mwifiex driver for sd8887
>>
>> Hi,
>> I've successfully managed to get this driver working in adhoc with olsrd
>> on mlan0 interface, now I'm trying to add a uap0 working at the same
>> time, with all this command:
>>
>> rfkill unblock wlan
>> ip link set uap0 down
>> ip link set mlan0 down
>> iw dev mlan0 set type ibss
>> ip link set mlan0 up
>> iw dev mlan0 ibss join mesh 2437 fe:de:fe:de:fe:de olsrd-start.sh cat
>> <<EOF > /etc/hostapd.conf ssid=PCM_AP_fede
>> interface=uap0
>> driver=nl80211
>> hw_mode=g
>> channel=6
>> EOF
>> iw phy phy0 interface add uap0 type __ap hostapd /etc/hostapd.conf &
>> dnsmasq --interface=uap0 --except-interface=lo --bind-interfaces --dhcp-
>> range=192.168.3.2,192.168.3.10,12h --conf-file=/dev/null ip addr add
>> 192.168.3.1/24 broadcast 192.168.3.255 dev uap0
>>
>> but I get this error after run the hostapd command:
>>
>> [ 4980.201096] IPv6: ADDRCONF(NETDEV_CHANGE): mlan0: link becomes ready
>> [ 4983.335467] IPv6: ADDRCONF(NETDEV_UP): uap0: link is not ready [
>> 4983.358879] mwifiex_sdio mmc0:0001:1: CMD_RESP: cmd 0xb1 error,
>> result=0x1
>>
>> adhoc is fine, with the above order of command but if I run before
>> hostapd and than adhoc part than the issue occur in the adhoc part.
>>
>> I'm using the firmware
>> http://git.marvell.com/?p=mwifiex-
>> firmware.git;a=blob;f=mrvl/sd8887_uapsta.bin;h=165e6c3d34b0c2a630252907a
>> 7ac4daf6e13c9d5;hb=HEAD
>>
>> and the mwifiex from kernel linux 4.1.1
>>
>
> I checked with our team. We don’t support simultaneous operations of Adhoc and AP network.
> Only one at a time can be used.
>
> Regards,
> Amitkumar