<div dir="ltr"><div><div><div><div>Hi,<br><br></div>Basically i will add one switch in GUI to select either 2.4GHz or 5GHz.<br><br></div>So if i select 2.4GHz the settings should be like below,<br><br>

<p class="MsoNormal"><span class="im"><b>config wifi-device 'wifi0'</b></span><b><br>
<span class="im">        option type 'qcawifi'</span><br>
<span class="im">        option channel 'auto'</span><br>
<span class="im">        option macaddr
'00:03:7f:42:06:61'</span><br>
<span class="im">        option hwmode '11ng'</span><br>
<span class="im">        option txpower '19'</span><br>
<span class="im">        option htmode 'HT20'</span><br>
<br>
<span class="im">config wifi-iface</span><br>
<span class="im">        option device 'wifi0'</span><br>
<span class="im">        option network 'lan'</span><br>
<span class="im">        option mode 'ap'</span><br>
<span class="im">        option encryption
'psk2'</span><br>
<span class="im">        option ssid
'Test_ap_1'</span><br>
        option key 'Test_ap_1'</b></p>

<br></div>so if i do factory reset it settings.<br><br></div>When i select 5GHz the config load with 5GHz as below:<br><br>

<p class="MsoNormal"><span class="im"><b>config wifi-device 'wifi0'</b></span><b><br>
<span class="im">        option type 'qcawifi'</span><br>
<span class="im">        option channel 'auto'</span><br>
<span class="im">        option macaddr
'00:03:7f:42:06:61'</span><br>
<span class="im">        option hwmode '11na'</span><br>
<span class="im">        option txpower '23'</span><br>
<span class="im">        option htmode 'HT20'</span><br>
<br>
<span class="im">config wifi-iface</span><br>
<span class="im">        option device 'wifi0'</span><br>
<span class="im">        option network 'lan'</span><br>
<span class="im">        option mode 'ap'</span><br>
<span class="im">        option encryption
'psk2'</span><br>
<span class="im">        option ssid
'Test_ap_1'</span><br>
        option key 'Test_ap_1'</b></p><p class="MsoNormal"><br></p><p class="MsoNormal"><b>So basically how i can condition in wireless config file to load the config based on the selection.</b></p><p class="MsoNormal"><br></p><p class="MsoNormal"><b>Can i write condition in wireless config file.</b></p><p class="MsoNormal"><br></p><p class="MsoNormal"><b>Thanks,<br></b></p> 

<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 9, 2015 at 7:02 AM, David Lang <span dir="ltr"><<a href="mailto:david@lang.hm" target="_blank">david@lang.hm</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sat, 8 Aug 2015, John kerry wrote:<br>
<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br><span class="">
I have to keep 2 default settings for wireless, i means to say i have to<br>
configure default settings for 2.4GHz and 5GHz.<br>
<br>
How i can configure wireless files. mainly i will add switch button in the<br>
GUI to switch over 2.4GHz and 5GHz.<br>
<br>
How i can control this in backend, how i can add file which handle this and<br>
configure 2 separate default settings for 2.4GHz and 5GHz.<br>
</span></blockquote>
<br>
It's not clear what you are asking to do. Please explain in more detail.<span class="HOEnZb"><font color="#888888"><br>
<br>
David Lang</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks,<br>
<br>
On Fri, Aug 7, 2015 at 1:50 PM, David Lang <<a href="mailto:david@lang.hm" target="_blank">david@lang.hm</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You cannot use both radios on the same channel, or even the same band.<br>
<br>
One radio will only work on channels 1-11 and the other will only work on<br>
channels 36+<br>
<br>
pick which band you are going to use to connect to the remote AP and which<br>
you are going to use to have your clients connect to it.<br>
<br>
David Lang<br>
<br>
<br>
On Fri, 7 Aug 2015, John kerry wrote:<br>
<br>
Hi,<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
I have one and i configured as below:<br>
<br>
config wifi-device 'wifi0'<br>
       option type 'qcawifi'<br>
       option channel 'auto'<br>
       option macaddr '00:26:75:bd:37:24'<br>
       option hwmode '11ng'<br>
       option txpower '16'<br>
       option htmode 'HT20'<br>
<br>
config wifi-iface<br>
       option device 'wifi0'<br>
       option network 'lan'<br>
       option mode 'ap'<br>
       option ssid 'Test_Ap'<br>
       option encryption 'psk2'<br>
       option key 'Test_AP'<br>
<br>
<br>
We can configure one radio only to work like that.<br>
Something like below:<br>
<br>
config wifi-device 'radio0'<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                option type 'mac80211'<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                option channel '11'<br>
                option hwmode '11g'<br>
                option path 'platform/ar933x_wmac'<br>
                option htmode 'HT20'<br>
                option country 'US'<br>
                option txpower '20'<br>
<br>
        config wifi-iface 'ap1'<br>
                option device 'radio0'<br>
                option mode 'ap'<br>
                option wds '1'<br>
                option ssid 'my AP'<br>
                option network 'lan'<br>
<br>
        config wifi-iface 'mesh1'<br>
                option device 'radio0'<br>
                option mode 'mesh'<br>
                option mesh_id 'my mesh'<br>
                option network 'lan'<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
<br>
On Fri, Aug 7, 2015 at 11:31 AM, Weedy <<a href="mailto:weedy2887@gmail.com" target="_blank">weedy2887@gmail.com</a>> wrote:<br>
<br>
On 6 Aug 2015 23:15, "John kerry" <<a href="mailto:kerry9842@gmail.com" target="_blank">kerry9842@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hi,<br>
<br>
<br>
Could anyone please help me on this to configure the wireless in such a<br>
<br>
</blockquote>
way that when we connect to wireless WAN the LAN SSID should not change.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
Thanks,<br>
<br>
</blockquote>
<br>
You need 2 physical radios.<br>
<br>
<br>
</blockquote>
<br>
</blockquote></blockquote>
<br>
</blockquote>
</div></div></blockquote></div><br></div>