[OpenWrt-Devel] "3-address Wi-Fi bridging" (was: Multiple Wi-Fi client/AP interfaces on one radio)

John kerry kerry9842 at gmail.com
Sun Aug 9 00:42:49 EDT 2015


Hi,

Basically i will add one switch in GUI to select either 2.4GHz or 5GHz.

So if i select 2.4GHz the settings should be like below,

*config wifi-device 'wifi0'*













*         option type 'qcawifi'         option channel 'auto'
option macaddr '00:03:7f:42:06:61'         option hwmode '11ng'
option txpower '19'         option htmode 'HT20' config wifi-iface
option device 'wifi0'         option network 'lan'         option mode 'ap'
        option encryption 'psk2'         option ssid 'Test_ap_1'
option key 'Test_ap_1'*

so if i do factory reset it settings.

When i select 5GHz the config load with 5GHz as below:

*config wifi-device 'wifi0'*













*         option type 'qcawifi'         option channel 'auto'
option macaddr '00:03:7f:42:06:61'         option hwmode '11na'
option txpower '23'         option htmode 'HT20' config wifi-iface
option device 'wifi0'         option network 'lan'         option mode 'ap'
        option encryption 'psk2'         option ssid 'Test_ap_1'
option key 'Test_ap_1'*


*So basically how i can condition in wireless config file to load the
config based on the selection.*


*Can i write condition in wireless config file.*



*Thanks,*


On Sun, Aug 9, 2015 at 7:02 AM, David Lang <david at lang.hm> wrote:

> On Sat, 8 Aug 2015, John kerry wrote:
>
> Hi,
>>
>> I have to keep 2 default settings for wireless, i means to say i have to
>> configure default settings for 2.4GHz and 5GHz.
>>
>> How i can configure wireless files. mainly i will add switch button in the
>> GUI to switch over 2.4GHz and 5GHz.
>>
>> How i can control this in backend, how i can add file which handle this
>> and
>> configure 2 separate default settings for 2.4GHz and 5GHz.
>>
>
> It's not clear what you are asking to do. Please explain in more detail.
>
> David Lang
>
>
> Thanks,
>>
>> On Fri, Aug 7, 2015 at 1:50 PM, David Lang <david at lang.hm> wrote:
>>
>> You cannot use both radios on the same channel, or even the same band.
>>>
>>> One radio will only work on channels 1-11 and the other will only work on
>>> channels 36+
>>>
>>> pick which band you are going to use to connect to the remote AP and
>>> which
>>> you are going to use to have your clients connect to it.
>>>
>>> David Lang
>>>
>>>
>>> On Fri, 7 Aug 2015, John kerry wrote:
>>>
>>> Hi,
>>>
>>>>
>>>>
>>>> I have one and i configured as below:
>>>>
>>>> config wifi-device 'wifi0'
>>>>        option type 'qcawifi'
>>>>        option channel 'auto'
>>>>        option macaddr '00:26:75:bd:37:24'
>>>>        option hwmode '11ng'
>>>>        option txpower '16'
>>>>        option htmode 'HT20'
>>>>
>>>> config wifi-iface
>>>>        option device 'wifi0'
>>>>        option network 'lan'
>>>>        option mode 'ap'
>>>>        option ssid 'Test_Ap'
>>>>        option encryption 'psk2'
>>>>        option key 'Test_AP'
>>>>
>>>>
>>>> We can configure one radio only to work like that.
>>>> Something like below:
>>>>
>>>> config wifi-device 'radio0'
>>>>
>>>>                 option type 'mac80211'
>>>>>
>>>>>>                 option channel '11'
>>>>>>                 option hwmode '11g'
>>>>>>                 option path 'platform/ar933x_wmac'
>>>>>>                 option htmode 'HT20'
>>>>>>                 option country 'US'
>>>>>>                 option txpower '20'
>>>>>>
>>>>>>         config wifi-iface 'ap1'
>>>>>>                 option device 'radio0'
>>>>>>                 option mode 'ap'
>>>>>>                 option wds '1'
>>>>>>                 option ssid 'my AP'
>>>>>>                 option network 'lan'
>>>>>>
>>>>>>         config wifi-iface 'mesh1'
>>>>>>                 option device 'radio0'
>>>>>>                 option mode 'mesh'
>>>>>>                 option mesh_id 'my mesh'
>>>>>>                 option network 'lan'
>>>>>>
>>>>>>
>>>>>
>>>>
>>>> On Fri, Aug 7, 2015 at 11:31 AM, Weedy <weedy2887 at gmail.com> wrote:
>>>>
>>>> On 6 Aug 2015 23:15, "John kerry" <kerry9842 at gmail.com> wrote:
>>>>
>>>>>
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>>
>>>>>> Could anyone please help me on this to configure the wireless in such
>>>>>> a
>>>>>>
>>>>>> way that when we connect to wireless WAN the LAN SSID should not
>>>>> change.
>>>>>
>>>>>
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>>
>>>>> You need 2 physical radios.
>>>>>
>>>>>
>>>>>
>>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150809/87f51b25/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list