Re: [OpenWrt-Devel] [PATCH] Added default configurations for enabling wifi on omap4 by default
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 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] Added default configurations for enabling wifi on omap4 by default
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 ? Thanks Regards, dvrao. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] Added default configurations for enabling wifi on omap4 by default
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 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] Added default configurations for enabling wifi on omap4 by default
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
Re: [OpenWrt-Devel] [PATCH] Added default configurations for enabling wifi on omap4 by default
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
Re: [OpenWrt-Devel] [PATCH] Added default configurations for enabling wifi on omap4 by default
On 2013-01-04 10:04 PM, dvrao 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 You have way too many generic config files in there. A target isn't supposed to contain a luci config or the wireless config (generated at first boot). Also, if ethernet by default already comes up with ethernet configured to LAN, why add a new config file? - Felix ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] Added default configurations for enabling wifi on omap4 by default
On Saturday 05 January 2013 02:49 AM, Felix Fietkau wrote: On 2013-01-04 10:04 PM, dvrao 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 You have way too many generic config files in there. A target isn't supposed to contain a luci config or the wireless config (generated at first boot). Also, if ethernet by default already comes up with ethernet configured to LAN, why add a new config file? - Felix Hi Felix Fietkau,Daniel, I have removed luci config file in the updated patch below. major concern of this patch is * By default create WAN group (instead of creating manually). * default generated wireless config is not working for OMAP4 TIWI-BLE module, after small change of the hwmod it is working. because of that I added wireless config (disabled mode). Please find the updated patch. 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/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 network 'lan' + option mode 'ap' + option ssid 'OpenWrt' + option encryption 'none' + option disabled '1' ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel