From 23eddc8fb355e8329de04f88c4326d537b55a8dc Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Sat, 27 Aug 2022 17:04:18 +0800 Subject: [PATCH] mt3000: revert increase wext scan data length Signed-off-by: Jianhui Zhao --- .../0052-wext-increase-scan-data-length.patch | 54 ------------------- profiles/glinet_mt3000.yml | 2 +- 2 files changed, 1 insertion(+), 55 deletions(-) delete mode 100644 patches-mt7981-21.02.3/0052-wext-increase-scan-data-length.patch diff --git a/patches-mt7981-21.02.3/0052-wext-increase-scan-data-length.patch b/patches-mt7981-21.02.3/0052-wext-increase-scan-data-length.patch deleted file mode 100644 index 57408b8..0000000 --- a/patches-mt7981-21.02.3/0052-wext-increase-scan-data-length.patch +++ /dev/null @@ -1,54 +0,0 @@ -From 7aba28aeff2c9e7257e642596c7c9b84f5cb29f4 Mon Sep 17 00:00:00 2001 -From: Jianhui Zhao -Date: Fri, 26 Aug 2022 16:45:49 +0800 -Subject: [PATCH] wext: increase scan data length - -Signed-off-by: Jianhui Zhao ---- - .../patches/100-increase-buffer-size.patch | 13 +++++++++++++ - .../9999-wext-increase-iw-scan-data-size.patch | 13 +++++++++++++ - 2 files changed, 26 insertions(+) - create mode 100644 package/network/utils/wireless-tools/patches/100-increase-buffer-size.patch - create mode 100644 target/linux/mediatek/patches-5.4/9999-wext-increase-iw-scan-data-size.patch - -diff --git a/package/network/utils/wireless-tools/patches/100-increase-buffer-size.patch b/package/network/utils/wireless-tools/patches/100-increase-buffer-size.patch -new file mode 100644 -index 0000000000..697856b541 ---- /dev/null -+++ b/package/network/utils/wireless-tools/patches/100-increase-buffer-size.patch -@@ -0,0 +1,13 @@ -+Index: wireless_tools.29/iwpriv.c -+=================================================================== -+--- wireless_tools.29.orig/iwpriv.c -++++ wireless_tools.29/iwpriv.c -+@@ -259,7 +259,7 @@ set_private_cmd(int skfd, /* Socket */ -+ int priv_num) /* Number of descriptions */ -+ { -+ struct iwreq wrq; -+- u_char buffer[4096]; /* Only that big in v25 and later */ -++ u_char buffer[20 * 1024]; /* Only that big in v25 and later */ -+ int i = 0; /* Start with first command arg */ -+ int k; /* Index in private description table */ -+ int temp; -diff --git a/target/linux/mediatek/patches-5.4/9999-wext-increase-iw-scan-data-size.patch b/target/linux/mediatek/patches-5.4/9999-wext-increase-iw-scan-data-size.patch -new file mode 100644 -index 0000000000..0e61a0e986 ---- /dev/null -+++ b/target/linux/mediatek/patches-5.4/9999-wext-increase-iw-scan-data-size.patch -@@ -0,0 +1,13 @@ -+Index: linux-5.4.188/include/uapi/linux/wireless.h -+=================================================================== -+--- linux-5.4.188.orig/include/uapi/linux/wireless.h -++++ linux-5.4.188/include/uapi/linux/wireless.h -+@@ -544,7 +544,7 @@ -+ #define IW_SCAN_TYPE_ACTIVE 0 -+ #define IW_SCAN_TYPE_PASSIVE 1 -+ /* Maximum size of returned data */ -+-#define IW_SCAN_MAX_DATA 4096 /* In bytes */ -++#define IW_SCAN_MAX_DATA 20 * 1024 /* In bytes */ -+ -+ /* Scan capability flags - in (struct iw_range *)->scan_capa */ -+ #define IW_SCAN_CAPA_NONE 0x00 --- -2.25.1 - diff --git a/profiles/glinet_mt3000.yml b/profiles/glinet_mt3000.yml index a988b1e..8fb83ce 100644 --- a/profiles/glinet_mt3000.yml +++ b/profiles/glinet_mt3000.yml @@ -19,7 +19,7 @@ feeds: revision: da09723846cf25c6b7e288cd1669c89ea4d6071e - name: mt7981 uri: git@gitlab.com:gl.sdk4.0/gl.router/mt7981-feeds.git - revision: 0d850962ae777e98b0bc3fa16720177a8242e3e7 + revision: 1ae799f202226c19daea5d8c3a6031fa27b82abe packages: - 8021xd