Commit Graph

2313 Commits

Author SHA1 Message Date
coolsnowwolf
892b521774 mac80211: grace code 2021-06-29 17:09:06 +08:00
coolsnowwolf
9faf3ea90d mac80211: add ipq807x dep for ath11k nss 2021-06-29 16:19:40 +08:00
coolsnowwolf
9be314ba8f mac80211: add ath11k nss dependence 2021-06-29 14:07:54 +08:00
coolsnowwolf
37efc3f069 ath11k: Update tx descriptor search index properly 2021-06-29 12:03:04 +08:00
coolsnowwolf
9e2257c44a ath11k: add hw nss ax wifi offload support 2021-06-29 11:47:43 +08:00
coolsnowwolf
aa3cc2ddfa ath11k: add decap offload support 2021-06-29 11:42:28 +08:00
Bob Cantor
d444b78fc9 base-files: wifi: tidy up the reconf code
commit 5edbd390d321532d9a697d6895a1a7c71c40bd5d rearranged the
"wifi up" code.

This commit tidies up the "wifi reconf" code so as to
keep it aligned with the "wifi up" code.

branches affected: trunk, 21.02

Signed-off-by: Bob Cantor <coxede6557@w3boats.com>
2021-06-29 11:17:51 +08:00
Bob Cantor
420bd45ca2 base-files: wifi: swap the order of some ubus calls
"/sbin/wifi up" makes three ubus calls:
1. ubus call network reload
2. ubus call network.wireless down
3. ubus call network.wireless up

The first and third ubus calls call drv_mac80211_setup,
while the second ubus call triggers wireless_device_setup_cancel,
so the call sequence becomes,

1. drv_mac80211_setup
2. wireless_device_setup_cancel
3. drv_mac80211_setup

This commit swaps the order of the first two ubus calls,
1. ubus call network.wireless down
2. ubus call network reload
3. ubus call network.wireless up

Consequently drv_mac80211_setup is only called once,
and two related bugs (#FS3784 and #FS3902) are no longer triggered
by /sbin/wifi.

branches affected: trunk, 21.02

Signed-off-by: Bob Cantor <coxede6557@w3boats.com>
2021-06-29 11:17:32 +08:00
Bob Cantor
5df9eeddbf mac80211: print an error if wifi teardown fails
drv_mac80211_teardown fails silently if the device to be torn down is
not defined.  This commit prints an error message.

branches affected: trunk, 21.02

Signed-off-by: Bob Cantor <coxede6557@w3boats.com>
2021-06-29 11:17:01 +08:00
Bob Cantor
00be744e8f mac80211: always call wireless_set_data (FS#3784)
When wifi is turned off, drv_mac80211_teardown sometimes fails (silently)
because the device to be torn down is not defined.

This situation arises if drv_mac80211_setup was called twice when
wifi was turned on.

This commit ensures that the device to be torn down is always defined
in drv_mac80211_teardown.

Steps to reproduce:

1) Use /sbin/wifi to turn on wifi.
   uci set wireless.@wifi-iface[0].disabled=0
   uci set wireless.@wifi-device[0].disabled=0
   uci commit
   wifi

2) Use /sbin/wifi to turn off wifi.
   uci set wireless.@wifi-device[0].disabled=1
   uci commit
   wifi

3) Observe that wifi is still up.

branches affected: trunk, 21.02

Signed-off-by: Bob Cantor <coxede6557@w3boats.com>
2021-06-29 11:16:40 +08:00
Bob Cantor
9cdb2a6cd3 mac80211: fix no_reload logic (FS#3902)
If drv_mac80211_setup is called twice with the same wifi configuration,
then the second call returns early with error HOSTAPD_START_FAILED.
(wifi works nevertheless, despite the fact that setup is incomplete.  But
"ubus call network.wireless status" erroneously reports that radio0 is down.)

The relevant part of drv_mac80211_setup is,

if [ "$no_reload" != "0" ]; then
        add_ap=1
        ubus wait_for hostapd
        local hostapd_res="$(ubus call hostapd config_add "{\"iface\":\"$primary_ap\", \"config\":\"${hostapd_conf_file}\"}")"
        ret="$?"
        [ "$ret" != 0 -o -z "$hostapd_res" ] && {
                wireless_setup_failed HOSTAPD_START_FAILED
                return
        }
        wireless_add_process "$(jsonfilter -s "$hostapd_res" -l 1 -e @.pid)" "/usr/sbin/hostapd" 1 1
fi

This commit sets no_reload = 0 during the second call of drv_mac80211_setup.

It is perhaps worth providing a way to reproduce the situation
where drv_mac80211_setup is called twice.

When /sbin/wifi is used to turn on wifi,
   uci set wireless.@wifi-iface[0].disabled=0
   uci set wireless.@wifi-device[0].disabled=0
   uci commit
   wifi

/sbin/wifi makes the following ubus calls,
   ubus call network reload
   ubus call network.wireless down
   ubus call network.wireless up

The first and third ubus calls both call drv_mac80211_setup,
while the second ubus call triggers wireless_device_setup_cancel.
So the call sequence becomes,

   drv_mac80211_setup
   wireless_device_setup_cancel
   drv_mac80211_setup

In contrast, when LuCI is used to turn on wifi only a single call
is made to drv_mac80211_setup.

branches affected: trunk, 21.02

Signed-off-by: Bob Cantor <coxede6557@w3boats.com>
2021-06-29 11:16:16 +08:00
Felix Fietkau
4d4799ac4c iwinfo: update to the latest version
c9b1672f5a83 nl80211: fix path compatibility issue

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2021-06-29 11:11:37 +08:00
Alexey Dobrovolsky
b789e068a3 busybox: sysntpd: add trigger to reload server
sysntpd server becomes unavailable if the index of the bound
interface changes. So let's add an interface trigger to reload sysntpd.

This patch also adds the ability for the sysntpd script to handle
uci interface name from configuration.

Fixes: 4da60500ebd2 ("busybox: sysntpd: option to bind server to iface")
Signed-off-by: Alexey Dobrovolsky <dobrovolskiy.alexey@gmail.com>
Reviewed-by: Philip Prindeville <philipp@redfish-solutions.com>
2021-06-29 11:09:36 +08:00
coolsnowwolf
99fe6d7249 libtorrent: bump to v1.2.14 2021-06-28 13:06:24 +08:00
coolsnowwolf
03a0c027a6 qbittorrent: bump to v4.3.6 2021-06-28 11:42:55 +08:00
coolsnowwolf
0e42710c09 Revert "Update Makefile (#7205)"
This reverts commit ab5ed92656.
2021-06-28 11:36:38 +08:00
Tianling Shen
b40baddcfe
kernel: 5.10: re-add shortcut-fe patch (#7204)
* kernel: 5.10: re-add shortcut-fe patch

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

* ipq807x: compat with SFE patch

Patch for ECM support includes some stuff provided by the one for sfe
alreadly, simply remove these duplicated parts.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

* qca-nss-ecm: rework netfilter conntrack notification

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-06-28 02:30:57 +00:00
eSir
ab5ed92656
Update Makefile (#7205) 2021-06-28 02:30:48 +00:00
libinanshu
b9ea47bdff
Perfect translation (#7202)
* Update arpbind.po

* Update sfe.po

* Update flowoffload.po
2021-06-28 00:22:18 +08:00
AmadeusGhost
41ba774971
ath10k: re-added 256qam support (#7200)
* mac80211: allow VHT on 2.4GHz

Allow VHT rate on 2.4GHz in order to use 256-QAM

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>

* ath10k: allow VHT on 2.4GHz

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>

* hostapd: add vendor_vht option

hostapd has vendor_vht option to enable VHT (256-QAM) on 2.4GHz
Add this option to hostapd.sh so users can enable it via uci

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>

* mac80211: ath.mk: typo fixes

Co-authored-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
2021-06-27 17:47:04 +08:00
coolsnowwolf
5e0c803478 mac80211: enable ATH10K THERMAL 2021-06-27 01:17:59 +08:00
Karel Kočí
c03bf68330 ustream-ssl: variants conflict with each other
This adds conflicts between variants of libustream pacakge.
They provide the same file and thus it should not be possible to install
them side by side.

Signed-off-by: Karel Kočí <karel.koci@nic.cz>
2021-06-27 01:00:05 +08:00
coolsnowwolf
283f361f58 Revert "automount: change to NTFS3 mount"
This reverts commit 99db707263.
2021-06-26 23:26:52 +08:00
ntlf9t
b8abbb6856
update lan bat0 binding (#7190) 2021-06-25 18:48:33 +00:00
coolsnowwolf
3a87b9106c ipq807x: fix Xiaomi AX3600/AX9000 support 2021-06-26 02:47:30 +08:00
dansir
ce2874f528
luci-app-mwan3helper: update data (#7173)
gfw数据来源:https://cokebar.github.io/gfwlist2dnsmasq/gfwlist_domain.txt
ispip数据来源:https://ispip.clang.cn/
2021-06-25 04:41:15 +00:00
dansir
0d655dc5c1
luci-app-xlnetacc: luci-compat (#7159)
* luci-app-xlnetacc: 删除非必要依赖luci-compat

当前源码采用旧版luci,luci-compat此兼容包只配合新版luci使用

* default-settings: 删除非必要依赖luci-compat
2021-06-25 04:40:43 +00:00
Beginner
39fc6395fd
hostapd: add support for providing vendor specific IE elements (#7178)
They can be added as hex digit strings via the 'vendor_elements' option

Signed-off-by: Felix Fietkau <nbd@nbd.name>

Co-authored-by: Felix Fietkau <nbd@nbd.name>
2021-06-25 04:40:25 +00:00
AmadeusGhost
f1d18ecb17
ipq-wifi: makefile bug fixes (#7180)
Fixes: eac26cc353
2021-06-25 04:40:12 +00:00
Dingcon
a2c991e755
Luci-app-diskman: update to v0.2.11 (#7170)
* Update to v0.3.4

Update to lastest version from lisaac.

* Update to v0.3.4

Update to lastest version from lisaac

* luci-lib-docker: Update to v0.3.4

Update to lastest version from lisaac.

* luci-app-diskman: Update to v0.2.11
2021-06-24 09:37:57 +00:00
Dingcon
6930f1bef1
Luci-lib-docker: Update to v0.3.4 (#7168)
* Update to v0.3.4

Update to lastest version from lisaac.

* Update to v0.3.4

Update to lastest version from lisaac

* luci-lib-docker: Update to v0.3.4

Update to lastest version from lisaac.
2021-06-24 07:11:26 +00:00
coolsnowwolf
a77abd4064 ddns-scripts_dnspod: fix dependence 2021-06-24 13:30:34 +08:00
dansir
6abd652604
hostapd: disassoc_low_ack disable by default (#7160)
https://openwrt.org/faq/disconnected_due_to_excessive_missing_acks
https://openwrt.org/faq/deauthenticated_due_to_inactivity
2021-06-24 05:26:23 +00:00
Beginner
6752f7970f
hostapd: add default_disabled option to the supplicant (#7165)
With the default configuration we generate, the supplicant starts
scanning and tries to connect to any open network when the interface
is enabled.

In some cases it can be desirable to prevent the supplicant from
scanning by itself. For example, if on the same radio an AP is
configured and an unconfigured STA is added (to be configured with
WPS), the AP might not be able to beacon until the STA stops
scanning.

In such a case, the STA configuration can still be required to set
specific settings (e.g. multi_ap_backhaul_sta) so it can't be set to
"disabled" in uci (because that would prevent the supplicant from
being run at all). The alternative is to add the "disabled" parameter
to the default network block in the supplicant configuration.

This patch adds a "default_disabled" setting in UCI which, when set,
adds the "disabled" parameter to the supplicant default network block.

Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>

Co-authored-by: Raphaël Mélotte <raphael.melotte@mind.be>
2021-06-24 05:25:38 +00:00
coolsnowwolf
37e0686458 ipq807x: add ath11k wireless 2021-06-24 12:26:35 +08:00
coolsnowwolf
b3908e3b65 mac80211: add ath11k support 2021-06-24 12:20:23 +08:00
coolsnowwolf
eac26cc353 ipq807x: add Redmi AX6, Xiaomi AX9000 support 2021-06-24 12:16:06 +08:00
coolsnowwolf
fb9568cbe3 kernel: bump 5.4 to 5.4.128 2021-06-24 10:49:50 +08:00
bluskai
2dee07b5c5
Update frp to v0.37.0 (#7149)
* Update frp to v0.37.0

* Update frp to v0.37.0
2021-06-23 13:23:36 +08:00
Beginner
3929e40fda
hostapd: make wnm_sleep_mode_no_keys configurable (#7150)
In the aftermath of the KRACK attacks, hostapd gained an AP-side workaround
against WNM-Sleep Mode GTK/IGTK reinstallation attacks. WNM Sleep Mode is not
enabled by default on OpenWrt, but it is configurable through the option
wnm_sleep_mode. Thus, make the AP-side workaround configurable as well by
exposing the option wnm_sleep_mode_no_keys. If you use the option
wpa_disable_eapol_key_retries and have wnm_sleep_mode enabled, you might
consider using this workaround.

Signed-off-by: Timo Sigurdsson <public_timo.s@silentcreek.de>

Co-authored-by: Timo Sigurdsson <public_timo.s@silentcreek.de>
2021-06-23 13:22:57 +08:00
coolsnowwolf
37805151b3 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2021-06-22 21:55:17 +08:00
coolsnowwolf
0a9825206d ddns-scripts_aliyun: fix VAR 2021-06-22 21:55:07 +08:00
Beginner
2c7a6b92b0
hostapd: sync upstream (#7135)
* hostapd: make country3 option configurable

The country3 option in hostapd.conf allows the third octet of the country
string to be set. It can be used e.g. to indicate indoor or outdoor use (see
hostapd.conf for further details). Make this option configurable but optional
in OpenWrt.

Signed-off-by: Timo Sigurdsson <public_timo.s@silentcreek.de>

* hostapd: fix handling of the channel utilization options

Commit 0a7657c ("hostapd: add channel utilization as config option") added the
two new uci options bss_load_update_period and chan_util_avg_period. However,
the corresponding "config_add_int" calls for these options weren't added, so
attempting to actually use these options and change their values is bound to
fail - they always stay at their defaults. Add the missing code to actually
make these options work.

Fixes: 0a7657c ("hostapd: add channel utilization as config option")
Signed-off-by: Timo Sigurdsson <public_timo.s@silentcreek.de>

Co-authored-by: Timo Sigurdsson <public_timo.s@silentcreek.de>
2021-06-22 11:07:36 +00:00
coolsnowwolf
07863551c8 ddns-scripts_aliyun: use uclient-fetch replace wget-ssl 2021-06-22 18:42:25 +08:00
coolsnowwolf
0b2a95ce24 default-settings: redirect ipv6 dns 2021-06-22 17:54:02 +08:00
coolsnowwolf
60ac048388 Version update to R21.6.22 2021-06-22 17:17:43 +08:00
coolsnowwolf
9a8c1923b2 UnblockNeteaseMusic: nodejs version use Tianling's source 2021-06-22 17:07:02 +08:00
coolsnowwolf
d60ec7c320 ntfs3: add kmod-nls-utf8 depend 2021-06-22 16:58:00 +08:00
coolsnowwolf
24714104cc autocore-arm: drop lm-sensor for ipq806x 2021-06-22 13:18:56 +08:00
coolsnowwolf
84d1b74472 autocore-arm: get rip of lm-sensor to speedup display index.html 2021-06-22 12:57:40 +08:00