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
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
ebtables
ifenslave
iftop
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
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
owipcalc
resolveip
rssileds
tcpdump
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
xtables-addons xtables-addons: remove version 1.x for old kernels 2014-08-07 19:30:33 +00:00