###################################################################################
##  apcfg
##
###################################################################################
##
## Network Address Selection
## Selects between DHCP or a static fixed address
##
## WAN_IPADDR = Fixed IP address of the WAN, if it's not bridged
##
###################################################################################

export AP_NETMASK=255.255.255.0
export WAN_IPADDR=192.168.1.2

if [ "${AP_PRIMARY_CH}" = "" ]; then
    # AP_PRIMARY_CH could be
    #                a number or
    #                11na (which means auto-scan in 11na mode) or
    #                11ng (which means auto-scan in 11ng mode)

    export AP_PRIMARY_CH=6
fi


if [ "${AP_CHMODE}" = "" ]; then
    # For this default, we will be in HT20 mode
    export AP_CHMODE=11NGHT20
fi

if [ "${TXQUEUELEN}" = "" ]; then
    export TXQUEUELEN=1000
fi

if [ "${SHORTGI}" = "" ]; then
    export SHORTGI=1
fi

#
# Aggregation.  First parameter enables/disables,
# second parameter sets the size limit
#

if [ "${AMPDUENABLE}" = "" ]; then
    export AMPDUENABLE=1
fi

if [ "${AMPDUFRAMES}" = "" ]; then
    export AMPDUFRAMES=32
fi

if [ "${AMPDULIMIT}" = "" ]; then
    export AMPDULIMIT=50000
fi

if [ "${CWMMODE}" = "" ]; then
    export CWMMODE=1
fi

if [ "${RATECTL}" = "" ]; then
    export RATECTL=auto
fi

if [ "${MANRATE}" = "" ]; then
    export MANRATE=0x8c8c8c8c
fi

if [ "${MANRETRIES}" = "" ]; then
    export MANRETRIES=0x04040404
fi

if [ "${RX_CHAINMASK}" = "" ]; then
    export RX_CHAINMASK=7
fi

if [ "${TX_CHAINMASK}" = "" ]; then
    export TX_CHAINMASK=5
fi

##
## AP Identification Section
##

if [ "${AP_SSID}" = "" ]; then
    export AP_SSID=Atheros_XSpan
fi
