openwrt/package/network/utils
Jo-Philipp Wich eb02b887ff package: fix segfault of iwinfo.scanlist("radio0").
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>

SVN-Revision: 42151
2014-08-12 11:14:11 +00:00
..
arptables arptables: Bump to 0.0.4 2013-06-24 05:48:12 +00:00
comgt build: disable the PKG_CHECK_FORMAT_SECURITY check for the failing packages 2014-06-30 08:19:48 +00:00
conntrack-tools conntrack-tools: fix build on octeon 2014-06-29 11:33:03 +00:00
curl curl: move to core packages 2014-06-11 15:43:24 +00:00
dante dante: fix broken configure script not using CFLAGS for conftest 2013-02-19 17:22:55 +00:00
ebtables packages: sort network related packages into package/network/ 2012-10-10 12:32:29 +00:00
ifenslave packages: ifenslave: add kernel dependencies as source was removed from 3.12 2014-01-15 09:28:41 +00:00
iftop iftop: update iftop to 1.0pre2 2012-10-16 15:49:49 +00:00
iperf build: disable the PKG_CHECK_FORMAT_SECURITY check for the failing packages 2014-06-30 08:19:48 +00:00
iproute2 iproute2: re-enable PIC, it is only applied to libnetlink.a and required for collectd 2014-07-02 12:41:36 +00:00
ipset Add patch to fix ipset timeout setting problem 2013-11-12 11:01:11 +00:00
iptables iptables: add kmod-ipt-nf* to dependency list of iptables-mod-nf*. 2014-08-07 12:32:33 +00:00
iputils iputils: add missing includes, fix musl support 2014-08-03 10:45:36 +00:00
iw iw: update to 3.15 2014-06-22 11:42:28 +00:00
iwcap iwcap: add missing include 2014-08-03 10:45:28 +00:00
iwinfo package: fix segfault of iwinfo.scanlist("radio0"). 2014-08-12 11:14:11 +00:00
linux-atm build: disable the PKG_CHECK_FORMAT_SECURITY check for the failing packages 2014-06-30 08:19:48 +00:00
maccalc packages: sort network related packages into package/network/ 2012-10-10 12:32:29 +00:00
owipcalc packages: sort network related packages into package/network/ 2012-10-10 12:32:29 +00:00
resolveip resolveip: fix endless getopt() loop when compiled for arm (#12290) 2012-11-08 10:48:08 +00:00
rssileds rssileds: improve performance 2012-10-14 16:22:04 +00:00
tcpdump tcpdump: update to current upstream version 4.5.1 2014-02-05 09:54:38 +00:00
uqmi uqmi: use -ffunction-sections and --gc-sections, reduces binary size from 57k to 29k 2014-06-07 19:14:17 +00:00
wireless-tools add myself as a maintainer for a few more packages 2012-10-10 12:49:37 +00:00
xtables-addons xtables-addons: remove version 1.x for old kernels 2014-08-07 19:30:33 +00:00