<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtk-20170518/package/network/utils/iwinfo/src, branch mtk-20170518</title>
<subtitle>MTK 20170518 : Mediatek SDK based on OpenWRT Barrier Breaker</subtitle>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/'/>
<entry>
<title>package/network/utils: probably from OpenWRT</title>
<updated>2018-09-16T17:25:03+00:00</updated>
<author>
<name>Ludovic Pouzenc</name>
<email>ludovic@pouzenc.fr</email>
</author>
<published>2018-09-16T17:25:03+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=be049529e6a883601fd47303a05165a6a0b9a4a5'/>
<id>be049529e6a883601fd47303a05165a6a0b9a4a5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>package: fix segfault of iwinfo.scanlist("radio0").</title>
<updated>2014-08-12T11:14:11+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jow@openwrt.org</email>
</author>
<published>2014-08-12T11:14:11+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=eb02b887ff2e71b28c47205f2c4070e9139bc2a0'/>
<id>eb02b887ff2e71b28c47205f2c4070e9139bc2a0</id>
<content type='text'>
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 &lt;yszhou4tech@gmail.com&gt;

SVN-Revision: 42151
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;yszhou4tech@gmail.com&gt;

SVN-Revision: 42151
</pre>
</div>
</content>
</entry>
<entry>
<title>iwinfo: allow scans in AP mode on nl80211</title>
<updated>2014-08-06T17:07:18+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@openwrt.org</email>
</author>
<published>2014-08-06T17:07:18+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=b465cf412fe567fa5df6a907455f6f7164cc1462'/>
<id>b465cf412fe567fa5df6a907455f6f7164cc1462</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;

SVN-Revision: 42014
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;

SVN-Revision: 42014
</pre>
</div>
</content>
</entry>
<entry>
<title>iwinfo: add missing include statement</title>
<updated>2014-08-03T10:45:23+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@openwrt.org</email>
</author>
<published>2014-08-03T10:45:23+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=5a506ca595ecf10a45b4a3c99da055655d7c2975'/>
<id>5a506ca595ecf10a45b4a3c99da055655d7c2975</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;

SVN-Revision: 41955
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;

SVN-Revision: 41955
</pre>
</div>
</content>
</entry>
<entry>
<title>iwinfo: avoid creating tmp.* ifaces for scanning</title>
<updated>2014-07-25T15:52:17+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jow@openwrt.org</email>
</author>
<published>2014-07-25T15:52:17+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=b84346e141eb29aa4c4da5fec0930940b8636cf6'/>
<id>b84346e141eb29aa4c4da5fec0930940b8636cf6</id>
<content type='text'>
If the iface to scan on already is in ad-hoc, station or monitor mode
then do not spawn a temporary iface.

Also preventively disable IPv6 on temporary ifaces before bringing them
up to avoid potential security issues.

Signed-off-by: Jo-Philipp Wich &lt;jow@openwrt.org&gt;

SVN-Revision: 41830
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the iface to scan on already is in ad-hoc, station or monitor mode
then do not spawn a temporary iface.

Also preventively disable IPv6 on temporary ifaces before bringing them
up to avoid potential security issues.

Signed-off-by: Jo-Philipp Wich &lt;jow@openwrt.org&gt;

SVN-Revision: 41830
</pre>
</div>
</content>
</entry>
<entry>
<title>iwinfo: fix secondary radios being misreported as ralink device</title>
<updated>2014-07-25T14:36:43+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jow@openwrt.org</email>
</author>
<published>2014-07-25T14:36:43+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=bd7642f1a96453eb6b6af9c13e861d413eac9afa'/>
<id>bd7642f1a96453eb6b6af9c13e861d413eac9afa</id>
<content type='text'>
Signed-off-by: Jo-Philipp Wich &lt;jow@openwrt.org&gt;

SVN-Revision: 41829
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jo-Philipp Wich &lt;jow@openwrt.org&gt;

SVN-Revision: 41829
</pre>
</div>
</content>
</entry>
<entry>
<title>iwinfo: continue scanning even if temporary mac cannot be changed</title>
<updated>2014-07-25T14:11:50+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jow@openwrt.org</email>
</author>
<published>2014-07-25T14:11:50+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=833820dc8bd380d4bb6812c663cae58c7a24aecd'/>
<id>833820dc8bd380d4bb6812c663cae58c7a24aecd</id>
<content type='text'>
So far iwinfo aborted a wifi scan attempt if the mac of the spawned
interface could not be changed. Change the code to try anyway - this
should fix wifi scanning on RaLink devices.

Signed-off-by: Jo-Philipp Wich &lt;jow@openwrt.org&gt;

SVN-Revision: 41826
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
So far iwinfo aborted a wifi scan attempt if the mac of the spawned
interface could not be changed. Change the code to try anyway - this
should fix wifi scanning on RaLink devices.

Signed-off-by: Jo-Philipp Wich &lt;jow@openwrt.org&gt;

SVN-Revision: 41826
</pre>
</div>
</content>
</entry>
<entry>
<title>iwinfo: fix crash on parsing mtd (#15807)</title>
<updated>2014-07-16T18:57:23+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@openwrt.org</email>
</author>
<published>2014-07-16T18:57:23+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=1ecb74024b66cd643549372f48ce828348ca5ba1'/>
<id>1ecb74024b66cd643549372f48ce828348ca5ba1</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;

SVN-Revision: 41675
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;

SVN-Revision: 41675
</pre>
</div>
</content>
</entry>
<entry>
<title>iwinfo: fix string format for country code</title>
<updated>2014-07-02T21:43:17+00:00</updated>
<author>
<name>Hauke Mehrtens</name>
<email>hauke@hauke-m.de</email>
</author>
<published>2014-07-02T21:43:17+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=2dba3f8aca5f1cca27b06e97347cfa849458b472'/>
<id>2dba3f8aca5f1cca27b06e97347cfa849458b472</id>
<content type='text'>
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;

SVN-Revision: 41485
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;

SVN-Revision: 41485
</pre>
</div>
</content>
</entry>
<entry>
<title>iwinfo: update nl80211 api to the latest one</title>
<updated>2014-06-02T13:10:53+00:00</updated>
<author>
<name>John Crispin</name>
<email>john@openwrt.org</email>
</author>
<published>2014-06-02T13:10:53+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=520fe28adffbebf377525bf9ff5cef21e70f85b5'/>
<id>520fe28adffbebf377525bf9ff5cef21e70f85b5</id>
<content type='text'>
modified version of http://patchwork.openwrt.org/patch/4533/

Signed-off-by: John Crispin &lt;blogic@openwrt.org&gt;

SVN-Revision: 40954
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
modified version of http://patchwork.openwrt.org/patch/4533/

Signed-off-by: John Crispin &lt;blogic@openwrt.org&gt;

SVN-Revision: 40954
</pre>
</div>
</content>
</entry>
</feed>
