I am trying connman as suggested by Patrik,I am able to connect with AP but
getting below error when trying for tethering

connmanctl> tether wifi on
Error enabling wifi tethering: Invalid arguments

Please give me hint what is missing.

It will be help-full to me if I will get some hint why connman can't handle
both the mode simultaneously (I already prove from above steps that it is
working so it can't be Hardware)

Thanks

On Tue, Jan 20, 2015 at 9:43 AM, techi eth <[email protected]> wrote:

> Hi,
>
> I am not sure if i have clearly explain my view.My comment against below
> point.
>
> >But AP and STA modes are mutually exclusive as an AP needs to be
> >available all the time.
>
> With below steps i could able to use both at same time.
>
> /*********** Setting AP Mode*************************/
> #iw phy phy0 interface add wlan1 type managed
> #ifconfig wlan1 10.4.30.34 netmask 255.255.255.0 up
> #hostapd /etc/hostapd.conf &
> #udhcpd /etc/udhcpd.conf
> #iptables -t nat -A POSTROUTING -o wlan1 -j MASQUERADE
>
> /***********Setting STA mode************************/
> #ifconfig wlan0 up
> #wpa_supplicant -d -Dnl80211 -c/etc/wpa_supplicant.conf -iwlan0 -B
> #udhcpc -R -b -p /var/run/udhcpc.wlan0.pid -i wlan0
> #echo 1 > /proc/sys/net/ipv4/ip_forward
>
> Is this is possible with connman as well ????
>
> Thanks
>
> ---------- Forwarded message ----------
> From: techi eth <[email protected]>
> Date: Fri, Jan 16, 2015 at 5:44 PM
> Subject: Re: Wi-Fi in Dual mode using connman
> To: [email protected]
>
>
> Thanks for answer.
>
> I have tried below steps (Part of TI Wiki). I could able to use both mode
> (AP+STA) at same time.
>
> /*********** Setting AP Mode*************************/
> #iw phy phy0 interface add wlan1 type managed
> #ifconfig wlan1 10.4.30.34 netmask 255.255.255.0 up
> #hostapd /etc/hostapd.conf &
> #udhcpd /etc/udhcpd.conf
> #iptables -t nat -A POSTROUTING -o wlan1 -j MASQUERADE
>
> /***********Setting STA mode************************/
> #ifconfig wlan0 up
> #wpa_supplicant -d -Dnl80211 -c/etc/wpa_supplicant.conf -iwlan0 -B
> #udhcpc -R -b -p /var/run/udhcpc.wlan0.pid -i wlan0
> #echo 1 > /proc/sys/net/ipv4/ip_forward
>
> Is this is possible with connman as well ????
>
> Thanks
>
> On Fri, Jan 2, 2015 at 1:20 PM, Patrik Flykt <[email protected]
> > wrote:
>
>> On Tue, 2014-12-30 at 19:02 +0530, techi eth wrote:
>>
>> > AP Requirement : I want any other STA will get connected to my Wi-Fi
>> board
>> > & i will serve the request without using internet.
>>
>> # connmanctl tether wifi
>>
>> No need to have an uplink Internet connection to make this work.
>>
>> > STA Requirement : I want to connect through other AP (Ex : Wi-Fi router)
>> > for internet connection to send data outside.
>>
>> # connmanctl
>> connmanctl> scan wifi
>> connmanctl> agent on
>> connmanctl> connect wifi_XXXXX_YYYYY
>>
>> But AP and STA modes are mutually exclusive as an AP needs to be
>> available all the time.
>>
>> Cheers,
>>
>>         Patrik
>> > Thanks
>> > _______________________________________________
>> > connman mailing list
>> > [email protected]
>> > https://lists.connman.net/mailman/listinfo/connman
>>
>>
>> _______________________________________________
>> connman mailing list
>> [email protected]
>> https://lists.connman.net/mailman/listinfo/connman
>>
>
>
>
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to