12 Commits
Author SHA1 Message Date
Christian Marangi ec3f05480e tools: CMakeLists: update cmake minimum required version to 3.10
New cmake version 4.0 requires at least 3.5 version as the minimum
required version with it increased to 3.10 in to-be-released cmake
versions.

Set the minimum required version to 3.10 to future-proof for future
cmake version.

Suggested-by: Hannu Nyman <[email protected]>
Signed-off-by: Christian Marangi <[email protected]>
2025-10-03 23:44:39 +02:00
Mieczyslaw NalewajandFelix Fietkau a22d59e4ad tools: fix allocation check and missing memory freeing
Fixed allocation checking and freeing buffer memory
inside mt76_eeprom_changes() function.

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
2025-01-22 12:42:34 +01:00
Hauke MehrtensandFelix Fietkau 021ded363d tools: Fix compile error with glibc
This fixes the following compile error when compiling against recent
glibc:
------------
/tools/eeprom.c:223:9: error: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Werror=unused-result]
  223 |         fread(buf, 1, EEPROM_PART_SIZE, f);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
------------

Signed-off-by: Hauke Mehrtens <[email protected]>
2023-03-02 22:23:43 +01:00
Felix Fietkau d11bd7bd83 tools: add support for sending firmware debug data via udp
Signed-off-by: Felix Fietkau <[email protected]>
2022-01-06 10:42:46 +01:00
Hauke MehrtensandFelix Fietkau 4c8a09cc45 tools: Set mode for new file /tmp/mt76-test-%s
Set the file system mode for the newly created file /tmp/mt76-test-%s,
this is mandatory according to the man page and fixes a compile error
with glibc.

Signed-off-by: Hauke Mehrtens <[email protected]>
2021-01-14 14:04:18 +01:00
Shayne ChenandFelix Fietkau 9909c0551e mt76: testmode: add support for HE rate modes
Extend enum mt76_testmode_tx_mode to support various HE rate modes.

Reviewed-by: Ryder Lee <[email protected]>
Signed-off-by: Shayne Chen <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]> [update tools/]
2020-11-10 13:34:05 +01:00
Shayne ChenandFelix Fietkau 73427ebbbd mt76: testmode: add support for LTF and GI combinations for HE mode
Prepare for setting different LTF (1x, 2x, and 4x) and GI (0.8us,
1.6us, 3.2us) combinations in HE rate mode.

Reviewed-by: Ryder Lee <[email protected]>
Signed-off-by: Shayne Chen <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]> [update tools/]
2020-11-10 13:30:22 +01:00
Shayne ChenandFelix Fietkau 3ea9a0433b mt76: testmode: add tx_rate_stbc parameter
Add the parameter to control STBC function in testmode.

Reviewed-by: Ryder Lee <[email protected]>
Signed-off-by: Shayne Chen <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]> [update tools/]
2020-11-10 13:27:19 +01:00
Shayne ChenandFelix Fietkau 0a898c0549 mt76: testmode: add snr attribute in rx statistics
Support to display snr value when dumping rx statistics.

Reviewed-by: Ryder Lee <[email protected]>
Signed-off-by: Shayne Chen <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]> [update tools/]
2020-11-10 13:25:19 +01:00
Shayne ChenandFelix Fietkau cdeb1b29cd mt76: testmode: switch ib and wb rssi to array type for per-antenna report
Change ib_rssi and wb_rssi into array type, since they could be reported
by per-antenna.

Reviewed-by: Ryder Lee <[email protected]>
Signed-off-by: Shayne Chen <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]> [update tools/]
2020-11-10 13:21:35 +01:00
Felix Fietkau f9a7a2f7db testmode: fix setting tx_power
Signed-off-by: Felix Fietkau <[email protected]>
2020-07-14 18:09:31 +02:00
Felix Fietkau 3ea5da1639 add utility for using testmode support
Signed-off-by: Felix Fietkau <[email protected]>
2020-06-22 21:32:26 +02:00