From 498d84fc4e00ad75514c3a9dde09338552b89a8c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 2 Dec 2013 16:41:03 +0000 Subject: netifd: add wireless configuration support and port mac80211 to the new framework Signed-off-by: Felix Fietkau SVN-Revision: 38988 --- package/kernel/mac80211/files/lib/wifi/mac80211.sh | 532 --------------------- 1 file changed, 532 deletions(-) (limited to 'package/kernel/mac80211/files/lib/wifi/mac80211.sh') diff --git a/package/kernel/mac80211/files/lib/wifi/mac80211.sh b/package/kernel/mac80211/files/lib/wifi/mac80211.sh index 1994ca38d4..e33b09abb2 100644 --- a/package/kernel/mac80211/files/lib/wifi/mac80211.sh +++ b/package/kernel/mac80211/files/lib/wifi/mac80211.sh @@ -1,166 +1,6 @@ #!/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 beacon_int "$device" beacon_int - config_get basic_rate_list "$device" basic_rate - config_get_bool noscan "$device" noscan - - hostapd_set_log_options base_cfg "$device" - - [ -n "$channel" -a -z "$hwmode" ] && wifi_fixup_hwmode "$device" - - hostapd_channel=$channel - [ "$channel" = auto -o "$channel" = 0 ] && hostapd_channel=acs_survey - - [ -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" - } - } - - local country_ie=0 - [ -n "$country" ] && country_ie=1 - config_get_bool country_ie "$device" country_ie "$country_ie" - [ "$country_ie" -gt 0 ] && append base_cfg "ieee80211d=1" "$N" - - local br brval brstr - [ -n "$basic_rate_list" ] && { - for br in $basic_rate_list; do - brval="$(($br / 100))" - [ -n "$brstr" ] && brstr="$brstr " - brstr="$brstr$brval" - done - } - - cat >> "$cfgfile" <