From: Hamish Guthrie Date: Fri, 25 Jun 2010 08:11:54 +0000 (+0000) Subject: Add script support for Marvell 88W8686 mac80211. This is a hack now, but it works... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2f5a5497be451465c17e6134a10923ff18fbc32b;p=openwrt%2Fstaging%2Fjow.git Add script support for Marvell 88W8686 mac80211. This is a hack now, but it works. cfg80211 is very broken in the current mainline Marvell driver. A new patch set to address this is in linux-next, I just do not have time today to address it. SVN-Revision: 21899 --- diff --git a/target/linux/omap35xx/gumstix/base-files/lib/wifi/mac80211.sh b/target/linux/omap35xx/gumstix/base-files/lib/wifi/mac80211.sh new file mode 100644 index 0000000000..53910efcd3 --- /dev/null +++ b/target/linux/omap35xx/gumstix/base-files/lib/wifi/mac80211.sh @@ -0,0 +1,437 @@ +#!/bin/sh +append DRIVERS "mac80211" + +mac80211_hostapd_setup_base() { + local phy="$1" + local ifname="$2" + + cfgfile="/var/run/hostapd-$phy.conf" + config_get device "$vif" device + config_get country "$device" country + config_get hwmode "$device" hwmode + config_get channel "$device" channel + config_get_bool noscan "$device" noscan + [ -n "$channel" -a -z "$hwmode" ] && wifi_fixup_hwmode "$device" + [ "$channel" = auto ] && channel= + [ -n "$hwmode" ] && { + config_get hwmode_11n "$device" hwmode_11n + [ -n "$hwmode_11n" ] && { + hwmode="$hwmode_11n" + append base_cfg "ieee80211n=1" "$N" + config_get htmode "$device" htmode + config_get ht_capab_list "$device" ht_capab + case "$htmode" in + HT20|HT40+|HT40-) ht_capab="[$htmode]";; + *)ht_capab=;; + esac + for cap in $ht_capab_list; do + ht_capab="$ht_capab[$cap]" + done + [ -n "$ht_capab" ] && append base_cfg "ht_capab=$ht_capab" "$N" + } + } + cat > "$cfgfile" <