Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-04 Thread David Lang
complex things happen. David Lang On Tue, 4 Aug 2015, John kerry wrote: Date: Tue, 4 Aug 2015 14:41:38 +0800 From: John kerry To: David Lang Cc: Weedy , N. Leiten , OpenWrt Development List Subject: Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings Hi, Yes i configured the mode as

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-03 Thread David Lang
ings happen. David Lang On Tue, 4 Aug 2015, John kerry wrote: Date: Tue, 4 Aug 2015 14:41:38 +0800 From: John kerry To: David Lang Cc: Weedy , N. Leiten , OpenWrt Development List Subject: Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings Hi, Yes i configured the mode as AP. could

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-03 Thread John kerry
Hi, Yes i configured the mode as AP. could you please guide how i can add script for another radio. presently my wireless script is as below: *config wifi-device 'wifi0'option type 'qcawifi'option channel 'auto'option macaddr '00:03:7f:42:06:61'optio

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-03 Thread David Lang
A given radio can be either an AP or a client, but not both at once. so if you use a radio to connect to another AP, you are making it a client, and in client mode all it can do is connect to that other AP as shows up as the SSID of that other AP. you can do this with one radio, while using t

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-03 Thread John kerry
Hi, Its working, i am able to access internet but there is one problem, When i scan the wireless devices, its gives the list of devices are there nearby, then i connect anyone device, it will connect but my board wifi0 SSID name will change to that router which i connected. I mean LAN side SSID s

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-03 Thread John kerry
Hi This is my firewall file: config defaults option syn_flood '1' option input 'ACCEPT' option output 'ACCEPT' option forward 'REJECT' config zone option name 'lan' option network 'lan' option input 'ACCEPT' option output 'ACCEPT'

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-03 Thread Weedy
Is there something wrong with the default rules for your use case? Your WiFi interfaces are tagged LAN, things should just work. On 4 Aug 2015 00:07, "John kerry" wrote: > Hi, > > below is the /etc/config/network and /etc/config/wireless changes. > > */etc/config/network:* > config interface 'lo

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-03 Thread David Lang
12:07:38 +0800 From: John kerry To: David Lang Cc: N.Leiten , OpenWrt Development List , Alex Weedy Subject: Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings Hi, below is the /etc/config/network and /etc/config/wireless changes. */etc/config/network:* config interface 'loopb

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-03 Thread John kerry
Hi, below is the /etc/config/network and /etc/config/wireless changes. */etc/config/network:* config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option ifname 'et

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-03 Thread David Lang
can you connect via a wired port? given that you've been changing /etc/config/network and /etc/config/wireless, could you show us what you ended up with there? David Lang On Tue, 4 Aug 2015, John kerry wrote: Hi, I am using ar71xx OpenWrt. I have connected internet connection to WAN port a

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-03 Thread John kerry
Hi, I am using ar71xx OpenWrt. I have connected internet connection to WAN port and my PC to LAN. I have enabled the WiFi0. The LAN port static IP i am able to open GUI and even my mobile i connected to Wifi AP and able to open GUI in mobile. But I am not able to access internet on mobile which is

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread John kerry
Hello Guys, It's working. Thanks a lot to all of you :) On Mon, Aug 3, 2015 at 10:43 AM, David Lang wrote: > The way to do this is to first forget about the factory reset problem and > configure the AP to do what you want (including any encryption) > > then you can take the resulting file and p

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread David Lang
The way to do this is to first forget about the factory reset problem and configure the AP to do what you want (including any encryption) then you can take the resulting file and put it into the build system so that it becomes the 'factory default' settings. Since you are not understanding ho

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread John kerry
Hi All, 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. config wifi-device wifi0 option type qcawifi option channel auto option macaddr 00:03:7f

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread David Lang
to make the config be there after a factory reset, you need to put the changes into the image that you build. you already did this for /etc/config/network, do the same thing for /etc/config/wireless David Lang On Sun, 2 Aug 2015, John kerry wrote: Hi Leiten, I have one issue, after upgrad

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread Donk
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 A how-to for create your own firmware with your own default files: http://wiki.openwrt.org/doc/howto/obtain.firmware.generate -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCA

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread John kerry
Hi, See that i created files in console, The main source code there is path : package/base-files/files/etc/config/ under this now already two files are there, but if i see in console under /etc/config it shows rwxrwxr-x1 root root 0 Jan 1 1970 . drwxrwxr-x1 root ro

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread Weedy
make On Sun, Aug 2, 2015 at 12:56 PM, John kerry wrote: > Hi, > > so i created directory as below and copy the following files > > root@OpenWrt:/# ls -al files/etc/config/ > drwxr-xr-x2 root root 0 Jul 30 18:42 . > drwxr-xr-x3 root root 0 Jul 30 18:35 .. >

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread John kerry
Hi, so i created directory as below and copy the following files root@OpenWrt:/# ls -al files/etc/config/ drwxr-xr-x2 root root 0 Jul 30 18:42 . drwxr-xr-x3 root root 0 Jul 30 18:35 .. -rw-r--r--1 root root 4045 Jul 30 18:42 ddns -rw-r--r-

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread Weedy
You seem to be having problems using uci-defaults. So forget that. Copy the running/working/complete config file from your device into files/etc/config/wireless. You need to make the files directory. You can put anything in there. weedy@HAF ~/projects/openwrt $ ls -al files/etc/config/ total 60 d

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread John kerry
Hi, Sorry i didn't get, you mean to say i should not add files under vi target/linux/ar71xx/base-files/etc/uci-defaults/99-wireless Could you please explain. On Mon, Aug 3, 2015 at 12:22 AM, Weedy wrote: > > On 2 Aug 2015 12:19, "John kerry" wrote: > > > > Hi, > > > > I am using below uci

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread Weedy
On 2 Aug 2015 12:19, "John kerry" wrote: > > Hi, > > I am using below uci script, > > vi target/linux/ar71xx/base-files/etc/uci-defaults/99-wireless If you're building images yourself you might like to use files/ instead. /files/etc/config/wireless You can dump any file you want in the finished

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread John kerry
Hi, I am using below uci script, vi target/linux/ar71xx/base-files/etc/uci-defaults/99-wireless #copyright (c) 2013 The Linux Foundation. All rights reserved. # Copyright (C) 2011 OpenWrt.org # touch /etc/config/wireless uci set wireless.@wifi-device[0].disabled=0; uci set system.@system[0].h

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread John kerry
Hi Leiten, I have one issue, after upgrading this firmware it will load wireless configuration with this changes, actually it should load when i do factory reset. Thanks, On Sun, Aug 2, 2015 at 3:45 PM, John kerry wrote: > Hi Leiten, > > Thank you so much, Its working :) > > On Sun, Aug 2, 201

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread John kerry
Hi Leiten, Thank you so much, Its working :) On Sun, Aug 2, 2015 at 3:12 PM, N.Leiten wrote: > Hi, > > Don't answer to my e-mail only, you need to add openwrt-devel maillist to > CC or just answer to CC, in each case I'll receive message but also > everyone could see all discussion. > > In emai

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread N.Leiten
Hi, Don't answer to my e-mail only, you need to add openwrt-devel maillist to CC or just answer to CC, in each case I'll receive message but also everyone could see all discussion. In email dated Воскресенье - 02 августа 2015 12:54:32 user John kerry wrote: > Hi Leiten, > > I have added new fi

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-01 Thread N.Leiten
You can also use uci-defaults mechanism for your purpose. Just put script in base-files/etc/uci-defaults and set your preferrable parameters with uci and don't forget to 'exit 0' at the end of script, in elsecase it'll be run every time at boot ruining changes. 2015-07-31 12:08 GMT+03:00 John kerr

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-07-31 Thread David Lang
/etc/config/wireless On Fri, 31 Jul 2015, N.Leiten wrote: Date: Fri, 31 Jul 2015 12:32:14 +0300 From: N.Leiten To: openwrt-devel@lists.openwrt.org Subject: Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings In email dated Пятница - 31 июля 2015 17:08:23 user John kerry wrote: Hi, I

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-07-31 Thread N.Leiten
In email dated Пятница - 31 июля 2015 17:08:23 user John kerry wrote: > Hi, > > I am working on Ar71xx openWRT Luci project. By default the Wi-Fi is > disabled and SSID is OpenWrt. I need to change the default settings. > Could anyone help me to change the default settings. > > > Best Regards, >