madwifi: modify madwifi.sh to support IBSS WPA-NONE
[openwrt.git] / package / madwifi / files / lib / wifi / madwifi.sh
index a180a82..2e37325 100755 (executable)
@@ -415,6 +415,15 @@ enable_atheros() {
                                        }
                                fi
                        ;;
+                       adhoc)
+                               if 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"
+                                               ifconfig "$ifname" down
+                                               wlanconfig "$ifname" destroy
+                                               continue
+                                       }
+                               fi
                esac
        done
 }
This page took 0.023677 seconds and 4 git commands to generate.