add he beamform(er/ee) options

This commit is contained in:
Phani Pavan K 2025-07-28 12:34:55 +05:30
parent 52cb8f7a1e
commit cc0643f446
1 changed files with 31 additions and 0 deletions

View File

@ -137,6 +137,9 @@ Options:
segment. Use with '--he-ch-width' segment. Use with '--he-ch-width'
--he-seg1-ch <channel> Channel index of HE center frequency for secondary --he-seg1-ch <channel> Channel index of HE center frequency for secondary
(second 80MHz) segment. Use with '--he-ch-width 3' (second 80MHz) segment. Use with '--he-ch-width 3'
--he-su-bfe Enable HE Single User Beamformee support
--he-su-bfr Enable HE Single User Beamformer support
--he-mu-bfr Enable HE Multi User Beamformer support
Instance managing: Instance managing:
--daemon Run in background --daemon Run in background
@ -223,6 +226,9 @@ define_global_variables(){
HECHANNELWIDTH=0 HECHANNELWIDTH=0
HESEG0CHINDEX=0 HESEG0CHINDEX=0
HESEG1CHINDEX=0 HESEG1CHINDEX=0
HESUBFE=0
HESUBFR=0
HEMUBFR=0
DRIVER=nl80211 DRIVER=nl80211
NO_VIRT=0 # not use virtual interface NO_VIRT=0 # not use virtual interface
COUNTRY= COUNTRY=
@ -489,6 +495,21 @@ parse_user_options(){
HESEG1CHINDEX="$1" HESEG1CHINDEX="$1"
shift shift
;; ;;
--he-su-bfe)
shift
HESUBFE=1
shift
;;
--he-su-bfr)
shift
HESUBFR=1
shift
;;
--he-mu-bfr)
shift
HEMUBFR=1
shift
;;
--driver) --driver)
shift shift
DRIVER="$1" DRIVER="$1"
@ -2010,7 +2031,17 @@ write_hostapd_conf() {
echo "require_he=1" >> "$CONFDIR/hostapd.conf" echo "require_he=1" >> "$CONFDIR/hostapd.conf"
fi fi
if [[ $HESUBFE -eq 1 ]]; then
echo "he_su_beamformee=1" >> "$CONFDIR/hostapd.conf"
fi
if [[ $HESUBFR -eq 1 ]]; then
echo "he_su_beamformer=1" >> "$CONFDIR/hostapd.conf"
fi
if [[ $HEMUBFR -eq 1 ]]; then
echo "he_mu_beamformer=1" >> "$CONFDIR/hostapd.conf"
fi
if [[ -n "$VHT_CAPAB" ]]; then if [[ -n "$VHT_CAPAB" ]]; then
echo "vht_capab=${VHT_CAPAB}" >> "$CONFDIR/hostapd.conf" echo "vht_capab=${VHT_CAPAB}" >> "$CONFDIR/hostapd.conf"