0012-hostapd-remove-unused-variable-declarations-in-hostapd.sh.patch 900 B

123456789101112131415161718192021
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Sat, 13 May 2017 16:16:01 +0200
  3. Subject: hostapd: remove unused variable declarations in hostapd.sh
  4. None of the variables in this "local" declaration are actually set in
  5. wpa_supplicant_add_network().
  6. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
  7. diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
  8. index 988ebc7757fedfba3eba464a973824622c3af8c3..195b6ec45ac4def6484b322703be04433b209c7b 100644
  9. --- a/package/network/services/hostapd/files/hostapd.sh
  10. +++ b/package/network/services/hostapd/files/hostapd.sh
  11. @@ -696,7 +696,6 @@ wpa_supplicant_add_network() {
  12. ;;
  13. esac
  14. }
  15. - local beacon_int brates mrate
  16. [ -n "$bssid" ] && append network_data "bssid=$bssid" "$N$T"
  17. [ -n "$beacon_int" ] && append network_data "beacon_int=$beacon_int" "$N$T"