madwifi: fix another instance of excessive stack usage in wlanconfig
authorFelix Fietkau <nbd@openwrt.org>
Sun, 12 Jul 2009 00:00:51 +0000 (00:00 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 12 Jul 2009 00:00:51 +0000 (00:00 +0000)
SVN-Revision: 16788

package/madwifi/patches/439-wlanconfig_stack_usage.patch

index dc239927fd701ded07328ce05d1b15f74b513dfc..f346143c3f4cce9fbf386806ac3710504c762997 100644 (file)
@@ -1,5 +1,14 @@
 --- a/tools/wlanconfig.c
 +++ b/tools/wlanconfig.c
+@@ -560,7 +560,7 @@ ieee80211_ntoa(const uint8_t mac[IEEE802
+ static void
+ list_stations(const char *ifname)
+ {
+-      uint8_t buf[24*1024];
++      static uint8_t buf[24*1024];
+       struct iwreq iwr;
+       uint8_t *cp;
+       int s, len;
 @@ -653,7 +653,7 @@ list_stations(const char *ifname)
  static void
  list_scan(const char *ifname)