21124 Commits

Author SHA1 Message Date
padavanonly
7fbc4d0d0b add luci-eqos-mtk(fork from tianling's version) 2023-12-15 01:15:07 +08:00
hanwckf
d2ecc79a20 default-settings: fix luci rpcd issue 2023-12-13 20:23:07 +08:00
hanwckf
ee0dca7a23 mtwifi-cfg: setup apcli autoconnect in iwpriv hook func 2023-12-12 17:08:18 +08:00
hanwckf
e45c4d4371 luci-app-mtwifi-cfg: add support for BeaconPeriod, DtimPeriod 2023-12-08 19:23:25 +08:00
hanwckf
202f16e915 mtwifi-cfg: add support for mtk dbdc chip cfgs 2023-12-08 00:28:59 +08:00
hanwckf
f7eaac3baf luci-app-mtwifi-cfg: add patch for network.js 2023-12-07 19:04:57 +08:00
hanwckf
30536c7e13 mtwifi-cfg: move frag and rts settings to vif cfg 2023-12-07 01:38:08 +08:00
hanwckf
ebf353ff63 Merge branch 'openwrt-21.02' of https://github.com/immortalwrt/immortalwrt into openwrt-21.02 2023-12-05 23:14:26 +08:00
hanwckf
4a5fefb8ec wifi-dats: update dat files 2023-12-05 23:01:56 +08:00
hanwckf
225db6977a luci-app-mtk/wifi-profile: add support for KickStaRssiLow and AssocReqRssiThres 2023-12-05 23:01:56 +08:00
hanwckf
5b1a7d3b24 luci-app-mtwifi-cfg: add kicklow and assocthres options 2023-12-05 23:01:56 +08:00
hanwckf
4c0506adc5 mtwifi-cfg: add support for KickStaRssiLow and AssocReqRssiThres 2023-12-05 23:01:56 +08:00
hanwckf
98cf9c1c47 iwinfo: mtk: return txpower for signal
iwinfo: mtk: set quality/quality_max to fixed value
2023-12-05 18:45:21 +08:00
hanwckf
02d553250f kernel: sysctl: update nf_conntrack_max to 65536 2023-12-05 12:40:39 +08:00
hanwckf
dd5716ef18 luci-app-mtwifi-cfg: split from mtwifi-cfg
luci-app-mtwifi-cfg: add zh-cn po

defconfig: update luci-app-mtwifi-cfg
2023-12-05 01:38:58 +08:00
hanwckf
f11d1bc629 luci-app-mtk: fix channel info 2023-12-05 00:15:57 +08:00
hanwckf
4d66dff162 iwinfo: detect mtk chip from l1profile for emmc devices 2023-12-04 23:14:22 +08:00
hanwckf
417a8f3894 kernel: sysctl: update nf_conntrack_buckets to 65536 2023-12-04 22:28:28 +08:00
hanwckf
115a22fa14 mtwifi-cfg: luci: fix twt settings 2023-12-04 19:23:44 +08:00
hanwckf
ca6260fbf2 luci-app-mtk: show tx power info 2023-12-04 19:04:54 +08:00
hanwckf
1e84180491 mtwifi-cfg: luci: fix mtwifi wireless signal badage
mtwifi-cfg: luci: fix apcli assoclist hostname

mtwifi-cfg: luci: set apcli scan poll interval to 15sec
2023-12-04 00:32:25 +08:00
hanwckf
11491e5005 mtwifi-cfg: fix bssidnum sanity 2023-12-03 23:22:54 +08:00
hanwckf
517712ed6f luci-app-turboacc-mtk: remove useless WHNAT option 2023-12-03 23:22:39 +08:00
hanwckf
5981123ea2 mtwifi-cfg: fix luci-wireless for mtwifi-cfg 2023-12-03 13:26:35 +08:00
hanwckf
a2b9a401f7 mtwifi-cfg: remove channel analysis 2023-12-03 13:26:35 +08:00
hanwckf
3951b5a04a mediatek: add mtwifi-cfg for configure mt_wifi 2023-12-03 13:25:56 +08:00
hanwckf
95c3efbca9 iwinfo: add support for mt798x vendor driver 2023-12-03 13:25:56 +08:00
hanwckf
87a1eb4821 wifi-profile: update mt798x default profile 2023-12-03 13:25:56 +08:00
hanwckf
536495b8c7 wifi-profile: split wifi-profile to wifi-dats
mt_wifi: set wifi-dats to dependency
2023-12-03 13:25:56 +08:00
hanwckf
deb0d4c7b5 mt_wifi: fix vif secinfo for iwinfo 2023-12-03 13:25:56 +08:00
hanwckf
7d566df930 mt_wifi: add flags to get site survey raw ssid 2023-12-03 13:25:56 +08:00
hanwckf
53a4938522 mt_wifi: fix apcli peer ap connect info 2023-12-03 13:25:56 +08:00
hanwckf
5b75e8c6ce mt_wifi: fix iw_range cmd for iwinfo 2023-12-03 13:25:56 +08:00
hanwckf
18a195e30e mt_wifi: add rssi info for site survey 2023-12-03 13:25:56 +08:00
hanwckf
68689844be mt_wifi: fix wext txpwr api panic with apcli 2023-12-03 13:25:56 +08:00
hanwckf
3496679e0c netifd: add disabled wireless vifs for scripts 2023-12-03 13:25:56 +08:00
hanwckf
6121bb519a netifd: ignore wireless brsnoop settings 2023-12-03 13:25:56 +08:00
hanwckf
602b929c98 netifd: auto detect mtk wifi-profile scripts 2023-12-03 13:25:56 +08:00
padavanonly
032821b7af
mt_wifi: add mt798x new fw (#175)
Co-authored-by: padavanonly <padavanonly@github.com>
2023-11-29 00:10:16 +08:00
hanwckf
1002e22b8e package/ppp: fix ipv6 2023-11-24 11:10:22 +08:00
hanwckf
76c1443697 wifi-profile: fix ax4200 dat files 2023-11-23 20:19:07 +08:00
padavanonly
514e9497eb update fstools to master version 2023-11-21 22:20:20 +08:00
padavanonly
65fb5f0767
mediatek: add support for Netcore N60 (#165)
* add netcore n60 support

* revert to old wifi firmware

---------

Co-authored-by: padavanonly <padavanonly@github.com>
2023-11-16 21:33:32 +08:00
Aabandon
194443120a
mediatek: add support for Xiaomi AX3000T (#160) 2023-11-15 20:38:11 +08:00
potatoigit
38c8c837fc mediatek: initial Banana Pi R3 Mini support 2023-11-11 21:24:29 +08:00
benboguan
7edca74a28
mt_wifi: add mt798x new fw (#146)
warp/mt_wifi: add 20231024 wocpu fw
2023-10-28 00:18:34 +08:00
hanwckf
b37a57bdd2 luci-app-mtk: remove unused "WpaMixPairCipher" settings
luci-app-mtk: keep ACS mode in apcli_cfg
2023-10-26 00:20:44 +08:00
hanwckf
6e77c6263f mt_wifi: fix wext txpwr api 2023-10-26 00:20:44 +08:00
Zy143L
33f15e3224 add nradio wt9103 support 2023-10-25 14:55:22 +08:00
Jan-Niklas Burfeind
90c8c47188
sunxi: ensure NanoPi R1 has unique MAC address
Ensure the MAC address for all NanoPi R1 boards is assigned uniquely for
each board.

The vendor ships the device in two variants; one with and one without
eMMC; but both without static mac-addresses.
In order to assign both board types unique MAC addresses, fall back on
the same method used for the NanoPi R2S and R4S in case the EEPROM
chip is not present by generating the board MAC from the SD card CID.

[0] https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R1#Hardware_Spec

Similar too and based on:

commit b5675f500daf ("rockchip: ensure NanoPi R4S has unique MAC address")

Co-authored-by: David Bauer <mail@david-bauer.net>
Signed-off-by: Jan-Niklas Burfeind <git@aiyionpri.me>
2023-10-22 12:44:55 +08:00
hanwckf
7e234b0bd8 base-files: fix PKG_CONFIG_DEPENDS for wifi-profile 2023-10-20 01:04:26 +08:00
hanwckf
443111d9ea luci-app-mtk: fix __delete_mbss_para mistakenly remove wifi-dev params 2023-10-20 01:04:26 +08:00
Tianling Shen
f78d2e13cf mediatek: initial cmcc rax3000m emmc support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-10-16 15:00:51 +08:00
hanwckf
62673496c8 netifd: only call wifi up when exec "ifup lan" 2023-10-08 00:48:38 +08:00
hanwckf
dd817b5373 netifd: fix 'ifup lan' could not reload mt798x wifi vifs 2023-10-08 00:23:51 +08:00
hanwckf
ae0c192f54 mtkhqos_util: update script 2023-09-29 02:37:55 +08:00
hanwckf
dd4312da3b Merge branch 'openwrt-21.02' of https://github.com/immortalwrt/immortalwrt into openwrt-21.02 2023-09-29 01:04:42 +08:00
Tianling Shen
0bd0306b05
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-09-28 11:02:31 +08:00
Hauke Mehrtens
c5dc0e01df
treewide: Add extra CPE identifier
This adds some Common Platform Enumerations (CPE) identifiers which I
found.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-09-27 22:16:36 +02:00
Alexander Couzens
9431f3625b packages: assign PKG_CPE_ID for all missing packages
The PKG_CPE_ID links to NIST CPE version 2.2.
Assign PKG_CPE_ID to all remaining package which have a CPE ID.
Not every package has CPE id.

Related: https://github.com/openwrt/packages/issues/8534
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
2023-09-27 17:21:26 +02:00
benboguan
cbbccc936f
luci-app-mtk: update zh-cn i18n (#129) 2023-09-27 00:56:36 +08:00
Brian Norris
683751adda
base-files: Remove nand.sh dependency from emmc upgrade
emmc_do_upgrade() relies on identify() from the nand.sh upgrade helper.
This only works because FEATURES=emmc targets also tend to include
FEATURES=nand.

Rename identify_magic() to identify_magic_long() to match the common.sh
style and make it clear it pairs with other *_long() variants (and not,
say *_word()).

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
(cherry picked from commit d3c19c71f6044eff1677563365cea0f9e919b462)
2023-09-26 15:41:19 +08:00
Brian Norris
cd655a8b30
base-files: Align rootfs_data upgrades to 64KiB on eMMC
Rootfs overlays get created at a ROOTDEV_OVERLAY_ALIGN (64KiB)
alignment after the rootfs, but emmc_do_upgrade() is assuming
it comes at the very next 512-byte sector.

Suggested-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
(move spaces around, mention fstools' libtoolfs)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(cherry picked from commit e8a0c55909427703b7c72ed46326531397287b20)
2023-09-26 15:38:06 +08:00
Enrico Mioso
7c89acbebf
base-files: add eMMC sysupgrade support
Adds generic support for sysupgrading on eMMC-based devices.

Provide function emmc_do_upgrade and emmc_copy_config to be used in
/lib/upgrade/platform.sh instead of redundantly implementing the same
logic over and over again.
Similar to generic sysupgrade on NAND, use environment variables
CI_KERNPART, CI_ROOTPART and newly introduce CI_DATAPART to indicate
GPT partition names to be used. On devices with more than one MMC
block device, CI_ROOTDEV can be used to specify the MMC device for
partition name lookups.

Also allow to select block devices directly using EMMC_KERN_DEV,
EMMC_ROOT_DEV and EMMC_DATA_DEV, as using GPT partition names is not
always an option (e.g. when forced to use MBR).

To easily handle writing kernel and rootfs make use of sysupgrade.tar
format convention which is also already used for generic NAND support.

Signed-off-by: Enrico Mioso <mrkiko.rs@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
CC: Li Zhang <li.zhang@gl-inet.com>
CC: TruongSinh Tran-Nguyen <i@truongsinh.pro>
(cherry picked from commit 57c1f3f9c5c699cc215bebde772552787c632570)
2023-09-26 15:36:54 +08:00
Daniel Golle
faec1771f6
base-files: allow specifiying rootdev for find_mmc_part
Some devices got more than one mmc device.
Allow specifying the root device as 2nd parameter of find_mmc_part so
scripts can avoid matching irrelevant partitions on wrong mmc device.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit 9f223a20bd5f0cbec9f34427588b645ae38433ff)
2023-09-26 15:35:02 +08:00
Davide Fioravanti
9bc1deec7f
base-files: add minimal mmc support
Added minimal mmc support for helper functions:

 - find_mmc_part: Look for a given partition name. Returns the
	coresponding partition path
 - caldata_extract_mmc: Look for a given partition name and then
	extracts the calibration data
 - mmc_get_mac_binary: Returns the mac address from a given partition
	name and offset

Signed-off-by: Davide Fioravanti <pantanastyle@gmail.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
[replace dd with caldata_dd, moved sysupgrade mmc to orbi]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(cherry picked from commit 6e137943442fb0ab66c34462fa19e5a4260eddd5)
2023-09-26 15:31:39 +08:00
hanwckf
a5e14f6ab6 package: remove usign padding warning message 2023-09-25 22:14:46 +08:00
hanwckf
d250665d7b luci-app-mtk: clean stainfo if all wifi interface is down 2023-09-23 22:16:28 +08:00
hanwckf
fdceeb5d90 autocore: check wifi ifname status before call iwpriv 2023-09-23 22:14:32 +08:00
hanwckf
180ca42211 mt7981: revert mt7981 wacpu/wocpu fw 2023-09-23 10:46:40 +08:00
hanwckf
53eae01db7 Merge branch 'openwrt-21.02' of https://github.com/immortalwrt/immortalwrt into openwrt-21.02 2023-09-18 10:01:12 +08:00
Nicholas Sun
e5a48ffa59
autocore: maximize ring buffer size for Intel IGC ethernet
Signed-off-by: Nicholas Sun <nicholas-sun@outlook.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 680e4752c52f001a446a14f4f78955c8374fcd09)
2023-09-16 17:01:37 +08:00
hanwckf
f4cbdc31ad mt_wifi: revert mt7981 wacpu fw to 20230411 2023-09-12 20:49:15 +08:00
hanwckf
014771c2ab Revert "warp: set wocpu-20230717 as mt7981 latest wocpu fw"
This reverts commit f5ccb09ea84d14275f7f9e9c01aa79956637cb83.
2023-09-12 20:48:42 +08:00
hanwckf
149b0510ee mt_wifi: fix ipi related cmd for mt798x new wacpu fw 2023-09-10 14:14:09 +08:00
hanwckf
bbfd9688a2 mt_wifi: set wacpu-20230421 as mt7986 latest wacpu fw 2023-09-10 13:23:15 +08:00
hanwckf
672d8c604f mt_wifi: set wacpu-20230717 as latest wacpu fw 2023-09-10 02:51:52 +08:00
hanwckf
f5ccb09ea8 warp: set wocpu-20230717 as mt7981 latest wocpu fw 2023-09-10 02:51:17 +08:00
hanwckf
e692bb708a mt-wifi: add 20230717 wacpu fw from xiaomi-ax3000t 2023-09-10 02:49:09 +08:00
hanwckf
62d0ba3d6b warp: add 20230717 wocpu fw from xiaomi-ax3000t 2023-09-10 02:48:41 +08:00
Tianling Shen
c989b26be4
ImmortalWrt v21.02.7: revert to branch defaults
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-09-07 13:35:29 +08:00
Tianling Shen
b6dd058ff1
ImmortalWrt v21.02.7: adjust config defaults
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-09-07 13:35:23 +08:00
hanwckf
e955a711dc Merge branch 'openwrt-21.02' of https://github.com/immortalwrt/immortalwrt into openwrt-21.02 2023-09-04 23:02:09 +08:00
Robert Marko
a8bbadefaf
mhz: respect CC and CFLAGS passed by buildsystem
It seems that the Makefile has both CC and CFLAGS hardcoded and does not
allow overriding them by ones being passed by the buildsystem.

This works fine until CONFIG_PKG_ASLR_PIE_ALL is selected, then building
will fail with:
arm-openwrt-linux-muslgnueabi/bin/ld.bfd: mhz.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
arm-openwrt-linux-muslgnueabi/bin/ld.bfd: mhz.o(.text+0x75c): unresolvable R_ARM_CALL relocation against symbol `__aeabi_l2d@@GCC_3.5

So, lets add a patch pending upstream that allows both CC and CFLAGS to be
overriden so that ones passed by the buildsystem are actually respected.

Fixes: 89123b308f98 ("mhz: add new package")
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 6c28f46f37d35dce06c320d9ac7f256c113aea22)
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 8c90527a80b0adf34f331f2f5517dce7795e9404)
2023-09-04 14:40:28 +08:00
hanwckf
45329cb67c Merge branch 'openwrt-21.02' of https://github.com/immortalwrt/immortalwrt into openwrt-21.02 2023-09-03 12:27:26 +08:00
hanwckf
20b31cf289 mt_wifi: remove ADDBA noisy log 2023-09-02 10:50:48 +08:00
Rafał Miłecki
383ae905a2 urngd: update to the latest master
7aefb47 jitterentropy-rngd: update to the v1.2.0

What's interesting about jitterentropy-rngd v1.2.0 release is that it
bumps its copy of jitterentropy-library from v2.2.0 to the v3.0.0. That
bump includes a relevant commit 3130cd9 ("replace LSFR with SHA-3 256").

When initializing entropy jent calculates time delta. Time values are
obtained using clock_gettime() + CLOCK_REALTIME. There is no guarantee
from CLOCK_REALTIME of unique values and slow devices often return
duplicated ones.

A switch from jent_lfsr_time() to jent_hash_time() resulted in many less
cases of zero delta and avoids ECOARSETIME.

Long story short: on some system this fixes:
[    6.722725] urngd: jent-rng init failed, err: 2

This is important change for BCM53573 which doesn't include hwrng and
seems to have arch_timer running at 36,8 Hz.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit c74b5e09e692839b39c8325b5f8dc5f2a3b3896c)
2023-09-01 16:10:22 +02:00
Tianling Shen
caf6177269
urngd: fix build for glibc
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-09-01 09:49:48 +08:00
Tianling Shen
0c5aa06824
ixgbe: fix build with kernel 5.4.255
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-31 14:57:34 +08:00
Rafał Miłecki
15bb8c3461
urngd: update to the latest master
7aefb47 jitterentropy-rngd: update to the v1.2.0

What's interesting about jitterentropy-rngd v1.2.0 release is that it
bumps its copy of jitterentropy-library from v2.2.0 to the v3.0.0. That
bump includes a relevant commit 3130cd9 ("replace LSFR with SHA-3 256").

When initializing entropy jent calculates time delta. Time values are
obtained using clock_gettime() + CLOCK_REALTIME. There is no guarantee
from CLOCK_REALTIME of unique values and slow devices often return
duplicated ones.

A switch from jent_lfsr_time() to jent_hash_time() resulted in many less
cases of zero delta and avoids ECOARSETIME.

Long story short: on some system this fixes:
[    6.722725] urngd: jent-rng init failed, err: 2

This is important change for BCM53573 which doesn't include hwrng and
seems to have arch_timer running at 36,8 Hz.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit c74b5e09e692839b39c8325b5f8dc5f2a3b3896c)
2023-08-31 10:19:18 +08:00
Rafał Miłecki
1db1d6b729
uboot-bcm4908: update to the latest generic
4435700d18 Remove redundant YYLOC global declaration

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 57a8ea6d749e5fe0e00673cc77b5f2c17b792650)
2023-08-31 10:19:11 +08:00
hanwckf
1206f33811 mt_wifi: fix mt7981 default eeprom files
fix #109
2023-08-30 01:02:06 +08:00
ssm1588
241bfde0b6
完善luci-app-mtk的汉化翻译 (#108) 2023-08-30 00:45:23 +08:00
hanwckf
3f08a8dad3 luci-app-mtk: update zh-cn i18n 2023-08-29 11:07:28 +08:00
hanwckf
b48d9ed458 wifi-profile: add DevEnable settings for wifi devices(MT798X.1.X)
luci-app-mtk: add support for DevEnable settings
2023-08-28 23:35:09 +08:00
hanwckf
04296f30f5 luci-app-mtk: add confirm() for add/remove/disable/reload vifs 2023-08-27 23:27:05 +08:00
hanwckf
01b62ef21d luci-app-mtk: fix colspan of stainfo 2023-08-27 10:14:15 +08:00
hanwckf
8d431e79f0 luci-app-mtk: add security info to stainfo
mt_wifi: send security info to userspace stainfo
2023-08-26 16:39:53 +08:00
benboguan
912deb4379
mt7981: add clt-r30b1 support (#107)
参考原厂固件修改
2023-08-26 00:30:07 +08:00
hanwckf
bf8be02de8 mt_wifi: fix shortgi for HTTRANSMIT_SETTING struct for HE phy mode
luci-app-mtk: fix stainfo GI for HE phy mode
2023-08-25 12:59:13 +08:00