<div dir="ltr"><div>Hi,<br><br></div>How to config wireless config file for repeater mode. I am not able to config.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 11, 2015 at 5:34 PM, John kerry <span dir="ltr"><<a href="mailto:kerry9842@gmail.com" target="_blank">kerry9842@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div>When i load firmware the wireless config will be like below:<span class=""><br><br>config wifi-device 'wifi0'<br>        option type 'qcawifi'<br></span><span class="">        option macaddr '00:26:75:bd:37:24'<br></span>        option hwmode '11ng'<br>        option txpower '16'<span class=""><br>        option htmode 'HT20'<br>        option disabled '0'<br>        option channel '1'<br><br>config wifi-iface<br>        option device 'wifi0'<br>        option mode 'ap'<br></span>        option ssid 'Test_ap'<span class=""><br>        option network 'lan'<br>        option encryption 'psk2'<br></span>        option key 'Test_ap'<br></div>        option wds '1'<br><br></div>so it works as Access point, i can connect to it any devices. When i scan it shows me list of devices then connect to anyone. then the wireless config  will becomes like below:<span class=""><br><br>config wifi-device 'wifi0'<br>        option type 'qcawifi'<br></span><span class="">        option macaddr '00:26:75:bd:37:24'<br></span>        option hwmode '11ng'<br>        option txpower '16'<span class=""><br>        option htmode 'HT20'<br>        option disabled '0'<br>        option channel '1'<br><br>config wifi-iface<br>        option network 'wwan'<br></span>        option ssid 'D-link-Router'<span class=""><br>        option encryption 'psk2'<br>        option device 'wifi0'<br>        option mode 'sta'<br></span>        option key '0010069039'<br>        option wds '1'<br><br></div>Then i add one more ap mode so wireless config becomes,<span class=""><br>config wifi-device 'wifi0'<br>        option type 'qcawifi'<br></span><span class="">        option macaddr '00:26:75:bd:37:24'<br></span>        option hwmode '11ng'<br>        option txpower '16'<span class=""><br>        option htmode 'HT20'<br>        option disabled '0'<br>        option channel '1'<br><br>config wifi-iface<br>       option network 'wwan'<br></span>        option ssid 'D-link-Router'<span class=""><br>        option encryption 'psk2'<br>        option device 'wifi0'<br>        option mode 'sta'<br></span>        option key '0010069039'<br>        option wds '1'<span class=""><br><br>config wifi-iface<br>        option device 'wifi0'<br>        option mode 'ap'<br></span>        option ssid 'Test_ap'<span class=""><br>        option network 'lan'<br>        option encryption 'psk2'<br></span>        option key 'Test_ap'<br>        option wds '1'<br><br></div>This i added manually one ap mode.<br><br></div>So if i copy this config file, build and load this firmware, its load what it was there so it shows one client which i was connected last time and one AP which i added.<br><br></div>But now i cannot scan anymore and connect to new router instead of old client.<br><br></div>This is the problem i am facing.<br><br></div>Basically i need to configure the wireless file for repeater mode.<br><br></div>So after connecting to another router this SSID still should be there and other device can connect to it.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 11, 2015 at 4:30 PM, 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">you have a working config<br>
<br>
but you want to do something by default<br>
<br>
what you want to do is different at different times.<br>
<br>
what is it that you want to be the default? when do you want this default to apply? This isn't clear.<br>
<br>
David Lang<br>
<br>
On Tue, 11 Aug 2015, John kerry wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Date: Tue, 11 Aug 2015 15:51:38 +0800<br>
From: John kerry <<a href="mailto:kerry9842@gmail.com" target="_blank">kerry9842@gmail.com</a>><br>
To: David Lang <<a href="mailto:david@lang.hm" target="_blank">david@lang.hm</a>><br>
Cc: Alex Weedy <<a href="mailto:weedy2887@gmail.com" target="_blank">weedy2887@gmail.com</a>>,<br>
    OpenWrt Development List <<a href="mailto:openwrt-devel@lists.openwrt.org" target="_blank">openwrt-devel@lists.openwrt.org</a>><br>
Subject: Re: [OpenWrt-Devel] Fwd: "3-address Wi-Fi bridging" (was: Multiple<div><div><br>
    Wi-Fi client/AP interfaces on one radio)<br>
<br>
Yes,<br>
<br>
i can copy the config and build with this configuration,<br>
<br>
for example now i have connected to some router, another time we can<br>
connect to any router. So how i can fix the settings by default.<br>
<br>
On Tue, Aug 11, 2015 at 12:45 AM, 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">
On Mon, 10 Aug 2015, John kerry wrote:<br>
<br>
I followed the same steps and its working too. But this i want in wireless<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
config file, Because i dont want every time to add using GUI. So When i<br>
connect to another router also, no need to add one more. I mean to say it<br>
should be in default wireless config file.<br>
<br>
</blockquote>
<br>
what do you mean by "default wireless config file"<br>
<br>
Once you have set it from the GUI, it is in the config files. The next<br>
time you boot it will use that config.<br>
<br>
If you mean that you want it in the factory default config (for when you<br>
first flash the router or do a factory reset), then take the<br>
/etc/config/wireless and /etc/config/network files and add them to your<br>
build under /files<br>
<br>
David Lang<br>
<br>
<br>
On Mon, Aug 10, 2015 at 6:18 PM, David Lang <<a href="mailto:david@lang.hm" target="_blank">david@lang.hm</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On Mon, 10 Aug 2015, John kerry wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Date: Mon, 10 Aug 2015 18:10:14 +0800<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
From: John kerry <<a href="mailto:kerry9842@gmail.com" target="_blank">kerry9842@gmail.com</a>><br>
To: Alex Weedy <<a href="mailto:weedy2887@gmail.com" target="_blank">weedy2887@gmail.com</a>>,<br>
    OpenWrt Development List <<a href="mailto:openwrt-devel@lists.openwrt.org" target="_blank">openwrt-devel@lists.openwrt.org</a>><br>
Subject: [OpenWrt-Devel] Fwd: "3-address Wi-Fi bridging" (was: Multiple<br>
Wi-Fi<br>
    client/AP interfaces on one radio)<br>
<br>
Firstly i configure wireless config as below:<br>
<br>
config wifi-device 'wifi0'<br>
       option type 'qcawifi'<br>
       option macaddr '00:01:11:00:01:00'<br>
       option hwmode '11ng'<br>
       option txpower '17'<br>
       option htmode 'HT20'<br>
       option disabled '0'<br>
       option channel '1'<br>
<br>
config wifi-iface<br>
       option device 'wifi0'<br>
       option mode 'ap'<br>
       option ssid 'Testing_ap'<br>
       option network 'lan'<br>
       option encryption 'psk2'<br>
       option key 'Testing_ap'<br>
<br>
so its SSID was showing and able to connect any device to it.<br>
<br>
Then i scan the device and connect to one of it. While joining the<br>
network<br>
i selected Client(WDS) then the wireless config becomes like below:<br>
<br>
<br>
</blockquote>
why don't you try following the steps in the video that you posted.<br>
<br>
first connect as a client, then add an additional interface and make the<br>
second interface the AP for things to connect to.<br>
<br>
the order may make a difference.<br>
<br>
David Lang<br>
<br>
<br>
config wifi-device 'wifi0'<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
       option type 'qcawifi'<br>
       option macaddr '00:01:11:00:01:00'<br>
       option hwmode '11ng'<br>
       option txpower '17'<br>
       option htmode 'HT20'<br>
       option disabled '0'<br>
       option channel '1'<br>
<br>
config wifi-iface<br>
       option network 'wwan'<br>
       option ssid 'D_Link_Router'<br>
       option encryption 'psk2'<br>
       option device 'wifi0'<br>
       option mode 'sta'<br>
       option key 'Dlink_Router'<br>
       option wds '1'<br>
<br>
Then  i added one as shown in the video. Now its connected to router<br>
also<br>
and this add one also showing so i can connect to this also.<br>
<br>
But i am not getting how to keep this in default wireless config.<br>
<br>
Because every time we cant add one to configure like this. It should be<br>
like default should be in ap mode so any device we can connect, if its<br>
connected to another router also that SSID still should be visible and<br>
able<br>
to connect to this.<br>
<br>
<br>
</blockquote>
<br>
<br>
On Mon, Aug 10, 2015 at 2:57 PM, 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>
When i try to configure based on video, its shows 2 one as client<br>
another<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
one as Master but i am not able to enable it . I mean to say wireless<br>
becomes disable. If i enable it using GUI also its not happening.<br>
<br>
On Mon, Aug 10, 2015 at 2:55 PM, David Lang <<a href="mailto:david@lang.hm" target="_blank">david@lang.hm</a>> wrote:<br>
<br>
What happens when you try to follow the video?<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Based on your comments, i'm guessing that things don't work when you<br>
try<br>
and configure the second network and have it with a different SSID<br>
than<br>
the<br>
first network that you put in client mode.<br>
<br>
Is this correct?<br>
<br>
David Lang<br>
<br>
On Mon, 10 Aug 2015, John kerry wrote:<br>
<br>
Yes, When i am connecting to Another router its changed to Client<br>
mode.<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Can i configure this in repeater mode like its shows in below link:<br>
<br>
<a href="https://www.youtube.com/watch?v=3rbsh2zxPnk" rel="noreferrer" target="_blank">https://www.youtube.com/watch?v=3rbsh2zxPnk</a><br>
<br>
<br>
<br>
</blockquote>
<br>
</blockquote>
_______________________________________________<br>
</blockquote></blockquote>
openwrt-devel mailing list<br>
<a href="mailto:openwrt-devel@lists.openwrt.org" target="_blank">openwrt-devel@lists.openwrt.org</a><br>
<a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" rel="noreferrer" target="_blank">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a><br>
<br>
<br>
<br>
</blockquote>
<br>
</blockquote></blockquote>
<br>
</div></div></blockquote>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>