<div dir="ltr">Hi All,<br><br>I created separate files directory and added network and wireless files and its working everything but still i am not able to use encryption wpa2. Below is the my script. <br>config wifi-device  wifi0<br>        option type     qcawifi<br>        option channel  auto<br>        option macaddr  00:03:7f:42:06:61<br>        option hwmode   11ng<br>        # REMOVE THIS LINE TO ENABLE WIFI:<br>        option disabled 0<br><br>config wifi-iface<br>        option device   wifi0<br>        option network  lan<br>        option mode     ap<br>        option ssid     CD-1<br>        option encryption psk2<br>        option key      CD-1<br><br>M I doing anything wrong?<br><br>Thanks,        <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 3, 2015 at 6:40 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">to make the config be there after a factory reset, you need to put the changes into the image that you build.<br>
<br>
you already did this for /etc/config/network, do the same thing for /etc/config/wireless<span class="HOEnZb"><font color="#888888"><br>
<br>
David Lang</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Sun, 2 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">
Hi Leiten,<br>
<br>
I have one issue, after upgrading this firmware it will load wireless<br>
configuration with this changes, actually it should load when i do factory<br>
reset.<br>
<br>
Thanks,<br>
<br>
On Sun, Aug 2, 2015 at 3:45 PM, John kerry <<a href="mailto:kerry9842@gmail.com" target="_blank">kerry9842@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Leiten,<br>
<br>
Thank you so much, Its working :)<br>
<br>
On Sun, Aug 2, 2015 at 3:12 PM, N.Leiten <<a href="mailto:nickleiten@gmail.com" target="_blank">nickleiten@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Don't answer to my e-mail only, you need to add openwrt-devel maillist to<br>
CC or just answer to CC, in each case I'll receive message but also<br>
everyone could see all discussion.<br>
<br>
In email dated Воскресенье - 02 августа 2015 12:54:32 user John kerry<br>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Leiten,<br>
<br>
I have added new files under and written below :<br>
vi target/linux/ar71xx/base-files/etc/uci-defaults/wireless<br>
</blockquote>
<br>
Use index in prefix of filename to set order of execution, so it'll be<br>
like '99-wireless'.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
#!/bin/sh<br>
#<br>
# Copyright (c) 2013 The Linux Foundation. All rights reserved.<br>
# Copyright (C) 2011 OpenWrt.org<br>
#<br>
<br>
[ -e /etc/config/wireless ] && exit 0<br>
</blockquote>
<br>
Here is the problem. When uci-defaults invoke scripts there's already<br>
preconfiguration done and /etc/config/wireless already exists, so your<br>
script just exit at this point. Remove this line.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
touch /etc/config/wireless<br>
<br>
uci set wireless.@wifi-device[0].disabled=0;<br>
uci set system.@system[0].hostname=test_ap<br>
uci set wireless.@wifi-iface[0].mode=ap<br>
uci set wireless.@wifi-iface[0].ssid=CD-2.4D<br>
uci set wireless.@wifi-iface[0].encryption=none<br>
uci set wireless.@wifi-iface[0].wds=1<br>
uci set wireless.radio0.disabled=0<br>
<br>
uci commit wireless<br>
<br>
exit 0<br>
<br>
and compile the source code using make V=s but still not changed default<br>
settings.<br>
<br>
Please help me to make it works.<br>
<br>
Thanks,<br>
<br>
<br>
On Sat, Aug 1, 2015 at 4:38 PM, N.Leiten <<a href="mailto:nickleiten@gmail.com" target="_blank">nickleiten@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You can also use uci-defaults mechanism for your purpose. Just put<br>
script in base-files/etc/uci-defaults and set your preferrable<br>
parameters with uci and don't forget to 'exit 0' at the end of script,<br>
in elsecase it'll be run every time at boot ruining changes.<br>
<br>
2015-07-31 12:08 GMT+03:00 John kerry <<a href="mailto:kerry9842@gmail.com" target="_blank">kerry9842@gmail.com</a>>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I am working on Ar71xx openWRT Luci project. By default the Wi-Fi is<br>
disabled and SSID is OpenWrt. I need to change the default settings.<br>
Could anyone help me to change the default settings.<br>
<br>
<br>
Best Regards,<br>
John<br>
<br>
_______________________________________________<br>
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>
</blockquote>
_______________________________________________<br>
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>
</blockquote></blockquote>
_______________________________________________<br>
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>
</blockquote>
<br>
<br>
</blockquote>
</blockquote>
</div></div></blockquote></div><br></div>