Hi dvrao,

Generally in OpenWrt wireless is not configured automatically even with a
default disable config.  wifi detect is run to determine info about the
wlan interface and set default parameters, but left disabled.

It shouldn't be on the filesystem.

Regards,

Daniel

On Fri, Jan 4, 2013 at 4:04 PM, dvrao <dv...@gytechs.com> wrote:

> On Saturday 05 January 2013 02:19 AM, Felix Fietkau wrote:
>
>> On 2013-01-04 9:37 PM, dvrao wrote:
>>
>>> On Saturday 05 January 2013 01:48 AM, Felix Fietkau wrote:
>>>
>>>> On 2013-01-04 9:11 PM, dvrao wrote:
>>>>
>>>>> Hi Imre Kaloz,
>>>>>
>>>>> With default configurations omap4(Pandaboard) WIFI is not working and
>>>>> Ethernet is in lan group.
>>>>> So added default configuration files of a working router(pandaboard)to
>>>>> change eth0 to wan and added working wlan configs.
>>>>>
>>>>>
>>>>> Signed-off-by: dvrao <dv...@gytechs.com>
>>>>>
>>>>> Index: target/linux/omap4/base-files/**etc/config/wireless
>>>>> ==============================**==============================**
>>>>> =======
>>>>> --- target/linux/omap4/base-files/**etc/config/wireless    (revision
>>>>> 0)
>>>>> +++ target/linux/omap4/base-files/**etc/config/wireless    (revision
>>>>> 0)
>>>>> @@ -0,0 +1,19 @@
>>>>> +
>>>>> +config wifi-device 'radio0'
>>>>> +    option type 'mac80211'
>>>>> +    option channel '11'
>>>>> +    option path
>>>>> 'platform/omap/omap_hsmmc.4/**mmc_host/mmc1/mmc1:0001/mmc1:**
>>>>> 0001:2/wl12xx'
>>>>> +    list ht_capab 'GF'
>>>>> +    list ht_capab 'SHORT-GI-20'
>>>>> +    list ht_capab 'RX-STBC1'
>>>>> +    option txpower '25'
>>>>> +    option hwmode '11g'
>>>>> +    option country '00'
>>>>> +
>>>>> +config wifi-iface
>>>>> +    option device 'radio0'
>>>>> +    option mode 'ap'
>>>>> +    option ssid 'Panda'
>>>>> +    option encryption 'none'
>>>>> +    option network 'lan'
>>>>> +
>>>>>
>>>>>  The default configuration in OpenWrt intentionally does not enable
>>>> unconfigured, unencrypted wifi by default, as it would expose access to
>>>> LAN at a potentially inconvenient time.
>>>> Please leave out /etc/config/wireless
>>>>
>>>> - Felix
>>>>
>>>>  Hi Felix Fietkau,
>>>
>>> As Panda have one Ethernet(WAN mode) and one WIFI Module(LAN).
>>> To access the WEB UI of OpenWrt at least one LAN module must be enabled.
>>> As we have only WIFI module in LAN mode I enabled it by default to
>>> connect and configure initially (after we can enable security).
>>>
>>> Is there any way to connect and configure from WAN ?
>>>
>> Maybe you should just leave Ethernet connected to the LAN. Let the user
>> reconfigure it for WAN if necessary.
>>
>> - Felix
>>
>>  Hi Felix Fietkau,
>
> Thanks for your support I have updated the patch. Please check.
>
> Signed-off-by: dvrao <dv...@gytechs.com>
>
>
> Index: target/linux/omap4/base-files/**etc/config/network
> ==============================**==============================**=======
> --- target/linux/omap4/base-files/**etc/config/network    (revision 0)
> +++ target/linux/omap4/base-files/**etc/config/network    (revision 0)
>
> @@ -0,0 +1,19 @@
> +
> +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 'eth0'
>
> +    option type 'bridge'
> +    option proto 'static'
> +    option ipaddr '192.168.1.1'
> +    option netmask '255.255.255.0'
> +    option _orig_ifname 'eth0 radio0.network1'
> +    option _orig_bridge 'true'
> +
> +config interface 'wan'
> +    option proto 'dhcp'
> +
>
> Property changes on: target/linux/omap4/base-files/**etc/config/network
> ______________________________**______________________________**_______
> Added: svn:executable
>    + *
>
> Index: target/linux/omap4/base-files/**etc/config/luci
> ==============================**==============================**=======
> --- target/linux/omap4/base-files/**etc/config/luci    (revision 0)
> +++ target/linux/omap4/base-files/**etc/config/luci    (revision 0)
> @@ -0,0 +1,28 @@
> +
> +config core 'main'
> +    option lang 'auto'
> +    option mediaurlbase '/luci-static/openwrt.org'
> +    option resourcebase '/luci-static/resources'
> +
> +config extern 'flash_keep'
> +    option uci '/etc/config/'
> +    option dropbear '/etc/dropbear/'
> +    option openvpn '/etc/openvpn/'
> +    option passwd '/etc/passwd'
> +    option opkg '/etc/opkg.conf'
> +    option firewall '/etc/firewall.user'
> +    option uploads '/lib/uci/upload/'
> +
> +config internal 'languages'
> +    option en 'English'
> +
> +config internal 'sauth'
> +    option sessionpath '/tmp/luci-sessions'
> +    option sessiontime '3600'
> +
> +config internal 'ccache'
> +    option enable '1'
> +
> +config internal 'themes'
> +    option OpenWrt '/luci-static/openwrt.org'
> +
>
> Property changes on: target/linux/omap4/base-files/**etc/config/luci
> ______________________________**______________________________**_______
> Added: svn:executable
>    + *
>
> Index: target/linux/omap4/base-files/**etc/config/wireless
> ==============================**==============================**=======
> --- target/linux/omap4/base-files/**etc/config/wireless    (revision 0)
> +++ target/linux/omap4/base-files/**etc/config/wireless    (revision 0)
> @@ -0,0 +1,20 @@
>
> +
> +config wifi-device 'radio0'
> +    option type 'mac80211'
> +    option channel '11'
> +    option path 'platform/omap/omap_hsmmc.4/**
> mmc_host/mmc1/mmc1:0001/mmc1:**0001:2/wl12xx'
> +    list ht_capab 'GF'
> +    list ht_capab 'SHORT-GI-20'
> +    list ht_capab 'RX-STBC1'
> +    option txpower '25'
> +    option hwmode '11g'
> +    option country '00'
> +
> +config wifi-iface
> +    option device 'radio0'
> +    option mode 'ap'
> +    option ssid 'Panda'
> +    option encryption 'none'
> +    option network 'lan'
> +    option disabled '1'
>
> +
>
> Property changes on: target/linux/omap4/base-files/**etc/config/wireless
> ______________________________**______________________________**_______
> Added: svn:executable
>    + *
>
> ______________________________**_________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.**org <openwrt-devel@lists.openwrt.org>
> https://lists.openwrt.org/**mailman/listinfo/openwrt-devel<https://lists.openwrt.org/mailman/listinfo/openwrt-devel>
>
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to