first step towards group TKIP or CCMP shared key in Ad-Hoc mode
should variable start_hostapd be renamed into $start_wpad?
---
Index: package/madwifi/files/lib/wifi/madwifi.sh
===================================================================
--- package/madwifi/files/lib/wifi/madwifi.sh (revision 23351)
+++ package/madwifi/files/lib/wifi/madwifi.sh (working copy)
@@ -356,8 +356,8 @@
}
fi
;;
- wds|sta)
- if eval "type wpa_supplicant_setup_vif"
2>/dev/null >/dev/null; then
+ wds|sta|adhoc)
+ if [ -n "$start_hostapd" ] && eval "type
wpa_supplicant_setup_vif" 2>/dev/null >/dev/null; then
wpa_supplicant_setup_vif "$vif" madwifi
|| {
echo "enable_atheros($device):
Failed to set up wpa_supplicant for interface $ifname" >&2
ifconfig "$ifname" down
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel