瀏覽代碼

mac80211: fix spurious error return codes in enable_mac80211()

SVN-Revision: 19265
Jo-Philipp Wich 15 年之前
父節點
當前提交
946291c8d5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      package/mac80211/files/lib/wifi/mac80211.sh

+ 1 - 1
package/mac80211/files/lib/wifi/mac80211.sh

@@ -408,7 +408,7 @@ enable_mac80211() {
 		start_hostapd=1
 	done
 
-	[ -n "$start_hostapd" ] || return
+	[ -n "$start_hostapd" ] || return 0
 
 	hostapd -P /var/run/wifi-$phy.pid -B /var/run/hostapd-$phy.conf || {
 		echo "Failed to start hostapd for $phy"