<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtk-20170518/package/kernel/mac80211/files/lib/netifd, branch v17.01.5</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>mac80211: don't pass the hostapd ctrl iface in adhoc</title>
<updated>2017-12-13T15:51:12+00:00</updated>
<author>
<name>Antonio Quartulli</name>
<email>ordex@autistici.org</email>
</author>
<published>2012-11-09T14:23:34+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=0f175041ad03d381a575e2c2b1a1c9ca76fe0e99'/>
<id>0f175041ad03d381a575e2c2b1a1c9ca76fe0e99</id>
<content type='text'>
Passing the ctrl iface to wpa_supplicant will automatically cause wpa_supplicant
to send "STOP_AP" messages to the hostapd. This breaks the AP interfaces.

Signed-off-by: Antonio Quartulli &lt;ordex@autistici.org&gt;
(cherry picked from commit 0da54fa6428ea98d31b49f5d9a4a272214f5d188)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Passing the ctrl iface to wpa_supplicant will automatically cause wpa_supplicant
to send "STOP_AP" messages to the hostapd. This breaks the AP interfaces.

Signed-off-by: Antonio Quartulli &lt;ordex@autistici.org&gt;
(cherry picked from commit 0da54fa6428ea98d31b49f5d9a4a272214f5d188)
</pre>
</div>
</content>
</entry>
<entry>
<title>mac80211: gracefully handle preexisting VIF</title>
<updated>2017-12-13T14:29:01+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jo@mein.io</email>
</author>
<published>2017-05-14T17:47:07+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=f0a493160cbc3feb683b6efb23ec80e0564d1be2'/>
<id>f0a493160cbc3feb683b6efb23ec80e0564d1be2</id>
<content type='text'>
Gracefully handle cases where the to-be-created wireless interface already
exists on the system which might commonly happen with non-multi-SSID capable
wireless drivers.

This fixes commit 8301e613655c2d95fa5430a1a57d92d966fdc70b which caused
previously ignored "Too many open files in system (-23)" errors to fail the
wireless setup procedure.

With the updated approach we'll still try recreating the vif after one
second if the first attempt to do so failed with ENFILE but we will now
consider the operation successfull if a second attempt still yields ENFILE
with the requested ifname already existing on the system.

Fixes FS#664, FS#704.

Suggested-by: Vittorio Gambaletta &lt;openwrt@vittgam.net&gt;
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
(cherry picked from commit 4a033475453b63d0d5ae41489e7c395882567698)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Gracefully handle cases where the to-be-created wireless interface already
exists on the system which might commonly happen with non-multi-SSID capable
wireless drivers.

This fixes commit 8301e613655c2d95fa5430a1a57d92d966fdc70b which caused
previously ignored "Too many open files in system (-23)" errors to fail the
wireless setup procedure.

With the updated approach we'll still try recreating the vif after one
second if the first attempt to do so failed with ENFILE but we will now
consider the operation successfull if a second attempt still yields ENFILE
with the requested ifname already existing on the system.

Fixes FS#664, FS#704.

Suggested-by: Vittorio Gambaletta &lt;openwrt@vittgam.net&gt;
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
(cherry picked from commit 4a033475453b63d0d5ae41489e7c395882567698)
</pre>
</div>
</content>
</entry>
<entry>
<title>mac80211: Fix race condition leading to wifi interfaces not coming up at boot sometimes.</title>
<updated>2017-12-13T13:52:24+00:00</updated>
<author>
<name>Vittorio Gambaletta</name>
<email>openwrt@vittgam.net</email>
</author>
<published>2017-03-14T13:45:15+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=62a8252a0f32d6c148e4565354fd6a99da13fa41'/>
<id>62a8252a0f32d6c148e4565354fd6a99da13fa41</id>
<content type='text'>
In the drv_mac80211_setup function, mac80211_interface_cleanup
is called to ask the kernel to delete all existing interfaces
for the phy that is being configured via netlink.

Later in the first function, mac80211_prepare_vif is called to
set up the new interfaces as required.

But sometimes, when mac80211_prepare_vif (and so the relevant
`iw phy x interface add y` command) runs, the kernel might still
be cleaning up the old interface with the same ifname. It usually
takes very few time to do that; possibly a few milliseconds of
sleep in the script after detecting this error condition could be
enough, but the busybox sh does not support sub-second sleep
intervals.

When this happens, iw obviously fails to create the new interface;
and the following message is printed in the system log, followed by
subsequent failure messages from hostapd in case this would have been
an AP interface.

Tue Mar 14 04:21:57 2017 daemon.notice netifd: radio1 (2767): command failed: Too many open files in system (-23)

This was a long-standing issue existing since at least OpenWrt Backfire,
and today I finally managed to debug and (hopefully) solve it.
It was happening very few times on most devices; but it was happening
a lot more frequently on fast platforms with multiple radios, such as
the powerpc-based dual-ath9k-radio tl-wdr4900-v1.

Signed-off-by: Vittorio Gambaletta &lt;openwrt@vittgam.net&gt;
(cherry picked from commit 8301e613655c2d95fa5430a1a57d92d966fdc70b)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In the drv_mac80211_setup function, mac80211_interface_cleanup
is called to ask the kernel to delete all existing interfaces
for the phy that is being configured via netlink.

Later in the first function, mac80211_prepare_vif is called to
set up the new interfaces as required.

But sometimes, when mac80211_prepare_vif (and so the relevant
`iw phy x interface add y` command) runs, the kernel might still
be cleaning up the old interface with the same ifname. It usually
takes very few time to do that; possibly a few milliseconds of
sleep in the script after detecting this error condition could be
enough, but the busybox sh does not support sub-second sleep
intervals.

When this happens, iw obviously fails to create the new interface;
and the following message is printed in the system log, followed by
subsequent failure messages from hostapd in case this would have been
an AP interface.

Tue Mar 14 04:21:57 2017 daemon.notice netifd: radio1 (2767): command failed: Too many open files in system (-23)

This was a long-standing issue existing since at least OpenWrt Backfire,
and today I finally managed to debug and (hopefully) solve it.
It was happening very few times on most devices; but it was happening
a lot more frequently on fast platforms with multiple radios, such as
the powerpc-based dual-ath9k-radio tl-wdr4900-v1.

Signed-off-by: Vittorio Gambaletta &lt;openwrt@vittgam.net&gt;
(cherry picked from commit 8301e613655c2d95fa5430a1a57d92d966fdc70b)
</pre>
</div>
</content>
</entry>
<entry>
<title>mac80211, hostapd: always explicitly set beacon interval</title>
<updated>2017-05-27T12:24:13+00:00</updated>
<author>
<name>Matthias Schiffer</name>
<email>mschiffer@universe-factory.net</email>
</author>
<published>2017-05-13T14:17:44+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=4bd3b8f8b0bc97cb7de4242b4f67c57ea8296de5'/>
<id>4bd3b8f8b0bc97cb7de4242b4f67c57ea8296de5</id>
<content type='text'>
One of the latest mac80211 updates added sanity checks, requiring the
beacon intervals of all VIFs of the same radio to match. This often broke
AP+11s setups, as these modes use different default intervals, at least in
some configurations (observed on ath9k).

Instead of relying on driver or hostapd defaults, change the scripts to
always explicitly set the beacon interval, defaulting to 100. This also
applies the beacon interval to 11s interfaces, which had been forgotten
before. VIF-specific beacon_int setting is removed from hostapd.sh.

Fixes FS#619.

Signed-off-by: Matthias Schiffer &lt;mschiffer@universe-factory.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
One of the latest mac80211 updates added sanity checks, requiring the
beacon intervals of all VIFs of the same radio to match. This often broke
AP+11s setups, as these modes use different default intervals, at least in
some configurations (observed on ath9k).

Instead of relying on driver or hostapd defaults, change the scripts to
always explicitly set the beacon interval, defaulting to 100. This also
applies the beacon interval to 11s interfaces, which had been forgotten
before. VIF-specific beacon_int setting is removed from hostapd.sh.

Fixes FS#619.

Signed-off-by: Matthias Schiffer &lt;mschiffer@universe-factory.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mac80211: start hostapd with logging wpa_printf messages to syslog</title>
<updated>2017-02-05T21:33:05+00:00</updated>
<author>
<name>Rafał Miłecki</name>
<email>rafal@milecki.pl</email>
</author>
<published>2017-01-30T06:32:00+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=36288db2fd857643cd9c4437322614d8f14e4b69'/>
<id>36288db2fd857643cd9c4437322614d8f14e4b69</id>
<content type='text'>
Some debugging/error messages are printed using wpa_printf and this
change allows finally reading them out of the syslog.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some debugging/error messages are printed using wpa_printf and this
change allows finally reading them out of the syslog.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mac80211: Allow HT/VHT rates when running unencrypted mesh.</title>
<updated>2017-01-02T15:47:59+00:00</updated>
<author>
<name>Alexis Green</name>
<email>agreen@cococorp.com</email>
</author>
<published>2016-12-21T23:17:01+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=fd718c50256536ed082852d735dc7690d7604418'/>
<id>fd718c50256536ed082852d735dc7690d7604418</id>
<content type='text'>
Signed-off-by: Alexis Green &lt;agreen@cococorp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Alexis Green &lt;agreen@cococorp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mac80211: fix calculation of VHT capability values</title>
<updated>2016-06-10T16:08:30+00:00</updated>
<author>
<name>Scott Shambarger</name>
<email>devel@shambarger.net</email>
</author>
<published>2016-06-10T12:50:35+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=4b8f0a2d26e5477b2dc4542ec7438665a906b756'/>
<id>4b8f0a2d26e5477b2dc4542ec7438665a906b756</id>
<content type='text'>
 - Fix calculation of `$vht_cap` bit field
 - Replace wrong reference to `$tx_stbc` variable with proper `$tx_stbc_2by1` one
 - Emit proper `RX-STBC-{1,12,123,1234}` tokens for the VHT capability list

See https://dev.openwrt.org/ticket/22535 for reference.

Signed-off-by: Scott Shambarger &lt;devel@shambarger.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 - Fix calculation of `$vht_cap` bit field
 - Replace wrong reference to `$tx_stbc` variable with proper `$tx_stbc_2by1` one
 - Emit proper `RX-STBC-{1,12,123,1234}` tokens for the VHT capability list

See https://dev.openwrt.org/ticket/22535 for reference.

Signed-off-by: Scott Shambarger &lt;devel@shambarger.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mac80211: make the path phy lookup more robust regarding config upgrades, allow partial path matching</title>
<updated>2016-01-21T13:28:04+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@openwrt.org</email>
</author>
<published>2016-01-21T13:28:04+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=95965cd81349bbbfe99414a74181c07d9c42f4aa'/>
<id>95965cd81349bbbfe99414a74181c07d9c42f4aa</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;

SVN-Revision: 48425
</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: 48425
</pre>
</div>
</content>
</entry>
<entry>
<title>mac80211: fix passing of VHT80 in IBSS mode</title>
<updated>2015-12-09T15:19:41+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jow@openwrt.org</email>
</author>
<published>2015-12-09T15:19:41+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=3041fbb4d2afe7b2d0598378b25aac3a7444eb4b'/>
<id>3041fbb4d2afe7b2d0598378b25aac3a7444eb4b</id>
<content type='text'>
The "iw" utility expects the VHT80 to be specified as uppercase "80MHZ",
change the script to reflect that.

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

SVN-Revision: 47814
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The "iw" utility expects the VHT80 to be specified as uppercase "80MHZ",
change the script to reflect that.

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

SVN-Revision: 47814
</pre>
</div>
</content>
</entry>
<entry>
<title>mac80211: fix disabling HT in IBSS mode (#21340)</title>
<updated>2015-12-09T15:18:43+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jow@openwrt.org</email>
</author>
<published>2015-12-09T15:18:43+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=713f698bd438591ecf487520e1d752183ca2ec46'/>
<id>713f698bd438591ecf487520e1d752183ca2ec46</id>
<content type='text'>
Signed-off-by: Jo-Philipp Wich &lt;jow@openwrt.org&gt;

SVN-Revision: 47813
</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: 47813
</pre>
</div>
</content>
</entry>
</feed>
