Thibaut VARÈNE
16cf91b3d2
uspot: fix malformed hex string and buffer overflow
...
Because _md[32] is defined as "char" instead of "unsigned char" in
uc_md5() and sprintf() is used instead of snprintf(), the resulting
string can be malformed (padded with FF for negative values) and
can overflow the target buffer, producing strings like:
21FFFF0D12FFFF6A48651050FFFF4CFFFFFFBA
FFFFFF16FF3EFF7C6560FFFF6BFFFFFFFFFFE7
The same issue affects the hex_to_str() helper function which uc_md5()
does not use.
This commit addresses these issues by:
- refactoring hex_to_str():
- accept a const void * input buffer internally cast to uchar
- use snprintf() and the correct format length modifier 'hh'
- use hex_to_str() in uc_md5()
- adjust uses in other callers to pass sizeof(inbuf)/2 instead of a
hardcoded number
str_to_hex() is also refactored with the same guidelines to simplify the
code and minimally address sscanf() failures by ending conversion.
While there, document these two helpers.
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org >
2023-05-30 07:56:09 +02:00
Thibaut VARÈNE
7bbad0ed50
uspot: handler-uam.uc: use ctx.config.uam_port/logoff
...
Remove hardcoded port and specify the actual logoff request endpoint.
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org >
2023-05-30 07:56:09 +02:00
Thibaut VARÈNE
c89b054324
uspot: accounting.uc: fix typo
...
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org >
2023-05-30 07:56:08 +02:00
Thibaut VARÈNE
e2abfd7b72
spotfilter: adjust DEPENDS
...
Add missing kmod-ifb
Remove unused kmod-sched-cake
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org >
2023-05-30 07:56:08 +02:00
Thibaut VARÈNE
e55abc109c
uspot: fix missing DEPENDS
...
Add missing:
- ratelimit
- ucode-mod-math
- ucode-mod-nl8011
- ucode-mod-rtnl
- ucode-mod-uloop
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org >
2023-05-30 07:56:08 +02:00
John Crispin
7d68d6d5c3
ucentral-schema: update to latest HEAD
...
e30b05f propagate reboot_cause
11dff2a add dynamic vlans to state messages
505ac1a fix captive uci code for latest captive PR
Fixes: WIFI-12590
Fixes: WIFI-12582
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-30 07:56:08 +02:00
John Crispin
d16b3d6919
ucentra-client: update to latest HEAD
...
cca938b send connect reason
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-30 07:56:08 +02:00
John Crispin
e91f49bdbd
udevstats: add support for dynamic vlans
...
Fixes: WIFI-12582
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-30 07:56:08 +02:00
John Crispin
4688ba6996
bridger: add new package
...
Fixes: WIFI-12577
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-30 07:56:08 +02:00
Venkata Chimata
4a6bc07d61
ipq50xx: Addp support for Cybertan EWW631-A1 and EWW631-B1 APs
...
EWW631-A1 (Ceiling mount)
Specifications are:
* CPU: Qualcomm IPQ5018
* RAM: 512 MB
* Storage: 256MB NAND-optional.
* Ethernet: 1x GbE
* UART header
* WLAN: 2.4GHz: IPQ5018, 5GHz: QCN6102
* 3x LED-s à R/G/B PWM control
Installation instructions:
Connect to UART, pins are like this
XA/XB PCBA UART :
PIN #5 | #4 | #3 | #2 | #1
GND | x | RX | TX | VCC
XC PCBA UART : (next version hardware board)
PIN #4 | #3 | #2 | #1
GND | RX | TX | VCC
Settings are 115200 8n1
1. Copy openwrt-ipq807x-cybertan_eww631_a1-squashfs-nand-factory.bin onto the board into /tmp/
2. At board's command prompt, issue sysupgrade -n /tmp/openwrt-ipq807x-cybertan_eww631_a1-squashfs-nand-factory.bin
-----------------------------------------------------------------------
EWW631-B1 (Wall mount)
Specifications are:
* CPU: Qualcomm IPQ5000
* RAM: 256 MB (IPQ5000 inside)
* Storage: 256MB NAND-optional.
* Ethernet: 4x GbE
* UART header
* WLAN: 2.4GHz: IPQ5000, 5GHz: QCN6102
* 3x LED-s à R/G/B PWM control
Installation instructions:
Connect to UART, pins are like this
Fixes: WIFI-12579
Signed-off-by: Venkata Chimata <venkata@shasta.cloud >
2023-05-30 07:56:08 +02:00
John Crispin
6f5f7bf068
ipq807x: fix reset button on wf666a
...
Fixes: WIFI-12591
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-30 07:56:08 +02:00
John Crispin
5b27dc31fc
ipq807x: fix dualboot on emmc flash chips
...
Fixes: WIFI-12537
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-30 07:56:08 +02:00
John Crispin
d9d0ae77e9
ipq807x: turn bootconfig into a module
...
Fixes: WIFI-12537
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-30 07:56:08 +02:00
John Crispin
a195b9e316
ucentral-schema: update to latest HEAD
...
689b111 make crashlog handler generic for pstore items
Fixes: WIFI-12590
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-30 07:56:08 +02:00
John Crispin
e211647656
ucentral-schema: update to latest HEAD
...
5d8e9b0 add boot time to the state message
Fixes: WIFI-12593
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-30 07:56:08 +02:00
John Crispin
64b248fad1
ipq807x: various improvements to cig,wf660a
...
Fixes: WIFI-12592
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-30 07:56:08 +02:00
John Crispin
d792176347
ucentral-schema: update to latest HEAD
...
4b86496 fix generation of upgrade.tgz
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-30 07:56:08 +02:00
John Crispin
5bd7b4bc51
ucentral-schema: update to latest HEAD
...
c112a0c rtty: allow configuration of the mutual tls feature
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-30 07:56:08 +02:00
Felix Fietkau
929ca004c4
ipq807x: backport act_pedit changes
...
Signed-off-by: Felix Fietkau <nbd@nbd.name >
2023-05-08 12:19:38 +02:00
John Crispin
848b09b6e1
ucentral-schema: update to latest HEAD
...
37d7a26 add per core cpu_load to the state message
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-08 10:56:18 +02:00
John Crispin
1061890189
ucentral-client: update to latest HEAD
...
5597621 improve the logic that detects stale gateway connections
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-08 10:56:18 +02:00
Kishan Shukla
39b1211541
ipq807x: Add ION4XI_WP support
...
Fixes: WIFI-12581
Signed-off-by: Kishan Shukla <kishan.shukla@hfcl.com >
2023-05-08 10:56:18 +02:00
Piotr Dymacz
08e976af26
ipq807x: include support for dual-image in YunCore AX840
...
This adds support for dual-image ('rootfs' partitions rotation), for
the YunCore AX840 board. Implementation details are included in the
'base-files' patch this commit adds:
0060-base-files-minimal-support-for-QCA-runtime-failsafe.patch
Fixes: WIFI-12537
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com >
2023-05-08 10:56:18 +02:00
Piotr Dymacz
b89ba787fe
ipq807x: enable BOOTCONFIG partition support in kernel
...
This is required for dual-image support ('rootfs' partitions rotation)
used for example on the YunCore AX840.
Fixes: WIFI-12537
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com >
2023-05-08 09:16:32 +02:00
John Crispin
1548fac62a
ipq807x: add dosilicon nand flash support
...
Fixes: WIFI-12580
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-06 09:21:12 +02:00
John Crispin
3dafdff716
ipq807x: make pstore/pmsg work
...
Fixes: WIFI-12578
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-04 12:57:52 +02:00
John Crispin
5cd786fb9a
ucentral-event: do not flush rate-limit on captive interfaces
...
Fixes: WIFI-12305
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-04 09:09:21 +02:00
John Crispin
be67c7fa07
ucentral-client: update to latest HEAD
...
a94e2df added the support to remove old public IP file once it is connected successfully to controller
Fixes: WIFI-12474
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-03 08:57:09 +02:00
John Crispin
5f3f788955
ucentral-client: update to latest HEAD
...
c500514 reduce PING interval to 60s
Fixes: WIFI-12573
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-02 18:49:35 +02:00
John Crispin
8667eecdcf
ucentral-schema: update to latest HEAD
...
0af4f34 Added support of retrieval of public IP if not existed and reporting in state msg
Fixes: WIFI-12474
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-02 17:46:43 +02:00
John Crispin
47b396873b
ucentral-schema: update to latest HEAD
...
99cd625 captive: allow mutliple instances
Fixes: WIFI-12366
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-02 17:42:17 +02:00
John Crispin
74dd8fc89e
uspot: add support for multiple captive portals
...
Fixes: WIFI-12366
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-02 17:42:17 +02:00
John Crispin
2a75855f23
ucentral-schema: update to latest HEAD
...
f2a7137 add roaming 'auto' button to data model
Fixes: WIFI-12570
Signed-off-by: John Crispin <john@phrozen.org >
2023-05-02 17:42:17 +02:00
John Crispin
7895a40487
ipq807x: disable GRO by default
...
Fixes: WIFI-12526
Signed-off-by: John Crispin <john@phrozen.org >
2023-04-25 16:20:54 +02:00
John Crispin
1f9a41b386
mac80211/ath11k: fix num_iface_combinations
...
Fixes: WIFI-12019
Signed-off-by: John Crispin <john@phrozen.org >
2023-04-24 17:51:34 +02:00
John Crispin
efb57bcc5a
ucentral-schema: update to latest HEAD
...
d7dbe23 allow passing hex values as radius request attributes
Fixes: WIFI-12534
Signed-off-by: John Crispin <john@phrozen.org >
2023-04-24 08:21:07 +02:00
John Crispin
70cdfe7103
ipq807x: update 6G CA BDF
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-04-12 06:57:02 +02:00
John Crispin
082e96d546
ip807x: fix ath11k-fwtest on cig wf196
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-04-12 06:57:02 +02:00
John Crispin
3aa1ff70bb
certificates: add a mount_cert helper script
...
Fixes: WIFI-12461
Signed-off-by: John Crispin <john@phrozen.org >
2023-04-12 06:57:02 +02:00
John Crispin
28623fb4b3
ucentral-schema: update to latest HEAD
...
b918e6a state: some devices will report temperature in milli celssius
Fixes: WIFI-12500
Signed-off-by: John Crispin <john@phrozen.org >
2023-04-12 06:57:02 +02:00
John Crispin
e35aacca4b
profiles: update profiles to allow v4.4 and v5.4 to co-exist in CI
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-04-12 06:57:02 +02:00
John Crispin
91e3140f5a
.github/workflows: add additional CI jobs
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-04-10 14:25:49 +02:00
Ken
5c84541011
ipq807x: Add WF-186w support
...
Add WF-186w support
Signed-off-by: Ken <xshi@actiontec.com >
2023-04-10 14:25:48 +02:00
John Crispin
b9b03a6e38
ipq95xx: add Qualcomm wifi-7 support
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-04-10 14:25:48 +02:00
John Crispin
3b6582117b
ipq807x: add ath12 / v5.4 support
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-04-10 14:25:48 +02:00
John Crispin
50cbd4688b
ipq807x: make v4.4 and v5.4 co-exist
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-04-10 14:25:48 +02:00
John Crispin
354089a7f2
base-files: fix target feeds
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-04-10 14:25:48 +02:00
John Crispin
f669fdaddc
cleanup: drop obselete code
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-04-10 14:25:48 +02:00
John Crispin
267147f971
edgecore: add TPM support
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-04-10 14:25:48 +02:00
John Crispin
63e8acadfc
bluetooth-cc2652: update feed to latest version
...
Signed-off-by: John Crispin <john@phrozen.org >
2023-04-10 14:25:48 +02:00