summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorAlexandros C. Couloumbis <alex@ozo.com>2011-02-21 13:08:55 +0000
committerAlexandros C. Couloumbis <alex@ozo.com>2011-02-21 13:08:55 +0000
commita05994173d7666637be611d8a59d5da6c9b83925 (patch)
tree8c9dd2ff993f81648ac99a1a3b6951e0bd703a67 /package
parente733d679a016ca5bf230c9f08bdf523f920cb1aa (diff)
downloadmtk-20170518-a05994173d7666637be611d8a59d5da6c9b83925.zip
mtk-20170518-a05994173d7666637be611d8a59d5da6c9b83925.tar.gz
mtk-20170518-a05994173d7666637be611d8a59d5da6c9b83925.tar.bz2
package/madwifi: extend wlanconfig scan ssid field from 14 to 30 characters
SVN-Revision: 25649
Diffstat (limited to 'package')
-rw-r--r--package/madwifi/patches/474_fix_ssid_scan_length.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/madwifi/patches/474_fix_ssid_scan_length.patch b/package/madwifi/patches/474_fix_ssid_scan_length.patch
new file mode 100644
index 0000000..2e85e18
--- /dev/null
+++ b/package/madwifi/patches/474_fix_ssid_scan_length.patch
@@ -0,0 +1,29 @@
+--- a/tools/wlanconfig.c
++++ b/tools/wlanconfig.c
+@@ -654,7 +654,7 @@ static void
+ list_scan(const char *ifname)
+ {
+ static uint8_t buf[24 * 1024];
+- char ssid[14];
++ char ssid[30];
+ uint8_t *cp;
+ int len;
+
+@@ -665,7 +665,7 @@ list_scan(const char *ifname)
+ if (len < sizeof(struct ieee80211req_scan_result))
+ return;
+
+- printf("%-14.14s %-17.17s %4s %4s %-5s %3s %4s\n",
++ printf("%-30.30s %-17.17s %4s %4s %-5s %3s %4s\n",
+ "SSID",
+ "BSSID",
+ "CHAN",
+@@ -680,7 +680,7 @@ list_scan(const char *ifname)
+
+ sr = (struct ieee80211req_scan_result *) cp;
+ vp = (u_int8_t *)(sr+1);
+- printf("%-14.*s %s %3d %3dM %2d:%-2d %3d %-4.4s",
++ printf("%-30.*s %s %3d %3dM %2d:%-2d %3d %-4.4s",
+ copy_essid(ssid, sizeof(ssid), vp, sr->isr_ssid_len),
+ ssid,
+ ieee80211_ntoa(sr->isr_bssid),