openwrtv4/package
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
..
base-files base-files: /lib/functions/network.sh: fix network_get_ipaddr6 2014-08-11 18:15:18 +00:00
boot uboot-kirkwood: bump to 2014.07 2014-08-08 15:55:03 +00:00
devel valgrind: add x86_64 support 2014-08-01 11:19:42 +00:00
firmware kernel: add staging r8188eu module (3.13) 2014-04-30 21:53:29 +00:00
kernel imx6: kernel: add GW16083 Ethernet Expansion Mezzanine support 2014-08-11 20:35:10 +00:00
libs cyassl: update to 3.1.0 2014-08-08 05:25:52 +00:00
network package: fix segfault of iwinfo.scanlist("radio0"). 2014-08-12 11:14:11 +00:00
system build: add new option to add disabled feeds commented out to opkg.conf 2014-08-06 09:12:37 +00:00
utils robocfg: add missing include 2014-08-03 10:45:39 +00:00
Makefile build: consider sub-directories when deploying packages to image with CONFIG_PER_FEED_REPO (#17430) 2014-08-07 15:35:12 +00:00