[OpenWrt-Devel] "3-address Wi-Fi bridging" (was: Multiple Wi-Fi client/AP interfaces on one radio)
David Lang
david at lang.hm
Sun Aug 9 06:45:42 EDT 2015
Well, if you are going to be modifying the GUI and adding a button to chagne
between two configs, where you store the two configs is going to be up to you.
When the button is clicked, you need to copy the approriate config to
/etc/config/wireless and run the wifi command to restart wifi with the new
config (I don't know the exact command to run, do wifi -h and look for a restart
option). Or, since the other LUCI stuff writes the file and then restarts
things, you can copy that code (which you will be looking at when you modify it
to include the new button and related functionality)
the files/ process lets you put whatever files you want in place to then use via
your change to LUCI.
for details of how to change the LUCI code, you should ask on it's development
mailing list.
David Lang
On Sun, 9 Aug 2015, John kerry wrote:
> Date: Sun, 9 Aug 2015 12:42:49 +0800
> From: John kerry <kerry9842 at gmail.com>
> To: David Lang <david at lang.hm>
> Cc: Weedy <weedy2887 at gmail.com>,
> OpenWrt Development List <openwrt-devel at lists.openwrt.org>,
> Joshua Judson Rosen <jrosen at harvestai.com>
> Subject: Re: [OpenWrt-Devel] "3-address Wi-Fi bridging" (was: Multiple Wi-Fi
> client/AP interfaces on one radio)
>
> 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.
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>
>
_______________________________________________
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