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

 
 		# It is far easier to delete and create the desired interface
 		case "$mode" in
@@ -460,12 +505,37 @@
 
 		case "$mode" in
 			adhoc)

--- 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"
