141059135SAdrian Chadd# 241059135SAdrian Chadd# Copyright (c) 2002-2008 Sam Leffler, Errno Consulting 341059135SAdrian Chadd# All rights reserved. 441059135SAdrian Chadd# 541059135SAdrian Chadd# Redistribution and use in source and binary forms, with or without 641059135SAdrian Chadd# modification, are permitted provided that the following conditions 741059135SAdrian Chadd# are met: 841059135SAdrian Chadd# 1. Redistributions of source code must retain the above copyright 941059135SAdrian Chadd# notice, this list of conditions and the following disclaimer, 1041059135SAdrian Chadd# without modification. 1141059135SAdrian Chadd# 2. Redistributions in binary form must reproduce at minimum a disclaimer 1241059135SAdrian Chadd# similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any 1341059135SAdrian Chadd# redistribution must be conditioned upon including a substantially 1441059135SAdrian Chadd# similar Disclaimer requirement for further binary redistribution. 1541059135SAdrian Chadd# 1641059135SAdrian Chadd# NO WARRANTY 1741059135SAdrian Chadd# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1841059135SAdrian Chadd# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1941059135SAdrian Chadd# LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY 2041059135SAdrian Chadd# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 2141059135SAdrian Chadd# THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 2241059135SAdrian Chadd# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2341059135SAdrian Chadd# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2441059135SAdrian Chadd# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 2541059135SAdrian Chadd# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2641059135SAdrian Chadd# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 2741059135SAdrian Chadd# THE POSSIBILITY OF SUCH DAMAGES. 2841059135SAdrian Chadd# 2941059135SAdrian Chadd# 3041059135SAdrian Chadd 3141059135SAdrian ChaddATH_RATE?= sample # tx rate control algorithm 3241059135SAdrian Chadd 3341059135SAdrian Chadd.PATH: ${SRCTOP}/sys/dev/ath 3441059135SAdrian Chadd 3541059135SAdrian ChaddKMOD= ath_rate 3641059135SAdrian Chadd 3741059135SAdrian ChaddSRCS= if_ath_rate.c 3841059135SAdrian Chadd 3941059135SAdrian Chadd# NB: rate control is bound to the driver by symbol names so only pick one 4041059135SAdrian Chadd.if ${ATH_RATE} == "sample" 4141059135SAdrian Chadd.PATH: ${SRCTOP}/sys/dev/ath/ath_rate/sample 4241059135SAdrian ChaddSRCS+= sample.c 4341059135SAdrian Chadd.elif ${ATH_RATE} == "onoe" 4441059135SAdrian Chadd.PATH: ${SRCTOP}/sys/dev/ath/ath_rate/onoe 4541059135SAdrian ChaddSRCS+= onoe.c 4641059135SAdrian Chadd.elif ${ATH_RATE} == "amrr" 4741059135SAdrian Chadd.PATH: ${SRCTOP}/sys/dev/ath/ath_rate/amrr 4841059135SAdrian ChaddSRCS+= amrr.c 4941059135SAdrian Chadd.endif 5041059135SAdrian Chadd 5141059135SAdrian ChaddSRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h opt_wlan.h 5241059135SAdrian Chadd 5341059135SAdrian ChaddCFLAGS+= -I. -I${SRCTOP}/sys/dev/ath -I${SRCTOP}/sys/dev/ath/ath_hal 5441059135SAdrian ChaddCFLAGS+= -I. -I${SRCTOP}/sys/contrib/dev/ath/ath_hal/ 5541059135SAdrian Chadd 5641059135SAdrian Chadd.include <bsd.kmod.mk> 578881d206SWarner Losh 58*369216b0SWarner LoshCWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE} 59