aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/iwinfo/src/iwinfo_lua.c
Commit message (Collapse)AuthorAgeFilesLines
* iwinfo: switch to external git repo, support lookup by phyname & macaddrJo-Philipp Wich2014-10-271-901/+0
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43087 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: handle 802.11ac mode for luaJo-Philipp Wich2014-10-041-0/+3
| | | | | | Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42757 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package: fix segfault of iwinfo.scanlist("radio0").Jo-Philipp Wich2014-08-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This is a bug revealed in r41830. First, the static variable `char nif[IFNAMSIZ]` of nl80211_phy2ifname() would be zeroed out if the argument is "wlan0" or the like. This will happen in the following call stack. nl80211_get_scanlist("radio0", buf, len); nl80211_phy2ifname("radio0") // return static var nif with content "wlan0" nl80211_get_scanlist(nif, buf, len); // tail call nl80211_get_mode(nif); nl80211_phy2ifname(nif); // zero out nif Later we try nl80211_ifadd("") which was supposed to create interface "tmp.", but that won't happen because nl80211_msg() will put an invalid ifidx 0 to the nlmsg. Then iwinfo_ifup() and iwinfo_ifdown() would fail and happily nl80211_get_scanlist() returned 0 and left *len undefined. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42151 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: move wl_ops to iwinfo_wl.c, make functions staticFelix Fietkau2014-05-211-25/+25
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40813 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: move nl80211_ops to iwinfo_nl80211.c, make functions staticFelix Fietkau2014-05-211-25/+25
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40812 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: move madwifi_ops to iwinfo_madwifi.c, make functions staticFelix Fietkau2014-05-211-25/+25
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40811 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: move wext_ops to iwinfo_wext.c, make functions staticFelix Fietkau2014-05-211-25/+25
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40810 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: make 'type' visible in wrapped iwinfoJo-Philipp Wich2013-10-181-0/+4
| | | | | | | | | | | There are several cases within 'luci' that attempt to access the interface 'type' from within the 'type' specific meta tables; however, 'type' is not currently available there. Replicate the common metadata in the 'type' specific meta tables. Signed-off-by: Nathan Hintz <nlhintz@hotmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38448 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: add phyname attribute, this is useful to group networks by radio phyJo-Philipp Wich2013-06-091-0/+8
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36889 3c298f89-4303-0410-b956-a3cf2f4a3e73
* packages: sort network related packages into package/network/Felix Fietkau2012-10-101-0/+886
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33688 3c298f89-4303-0410-b956-a3cf2f4a3e73