 +				encryption="none"
 +			fi
 +			export channel
-+			iw dev "$ifname" set channel "$channel"
 +			config_set "$device" channel "$channel"
 +			uci_set wireless "$device" channel "$channel"
 +			config_set "$vif" mode "$mode"

 mac80211_hostapd_setup_base() {
 	local phy="$1"
 	local ifname="$2"
@@ -353,10 +355,53 @@
 		[ -n "$ifname" ] || {
 			[ $i -gt 0 ] && ifname="wlan${phy#phy}-$i" || ifname="wlan${phy#phy}"
 		}

--- mac80211.sh.orig	2014-01-30 17:05:32.774138436 -0500
+++ mac80211.sh	2014-01-30 17:04:01.574138749 -0500
@@ -1,6 +1,8 @@
 #!/bin/sh
 append DRIVERS "mac80211"
