17a1306a7Sxc151355 /* 2*129d67acSlin wang - Sun Microsystems - Beijing China * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 37a1306a7Sxc151355 * Use is subject to license terms. 47a1306a7Sxc151355 */ 57a1306a7Sxc151355 67a1306a7Sxc151355 /* 77a1306a7Sxc151355 * Copyright (c) 2002-2004 Sam Leffler, Errno Consulting 87a1306a7Sxc151355 * All rights reserved. 97a1306a7Sxc151355 * 107a1306a7Sxc151355 * Redistribution and use in source and binary forms, with or without 117a1306a7Sxc151355 * modification, are permitted provided that the following conditions 127a1306a7Sxc151355 * are met: 137a1306a7Sxc151355 * 1. Redistributions of source code must retain the above copyright 147a1306a7Sxc151355 * notice, this list of conditions and the following disclaimer, 157a1306a7Sxc151355 * without modification. 167a1306a7Sxc151355 * 2. Redistributions in binary form must reproduce at minimum a disclaimer 177a1306a7Sxc151355 * similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any 187a1306a7Sxc151355 * redistribution must be conditioned upon including a substantially 197a1306a7Sxc151355 * similar Disclaimer requirement for further binary redistribution. 207a1306a7Sxc151355 * 3. Neither the names of the above-listed copyright holders nor the names 217a1306a7Sxc151355 * of any contributors may be used to endorse or promote products derived 227a1306a7Sxc151355 * from this software without specific prior written permission. 237a1306a7Sxc151355 * 247a1306a7Sxc151355 * NO WARRANTY 257a1306a7Sxc151355 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 267a1306a7Sxc151355 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 277a1306a7Sxc151355 * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY 287a1306a7Sxc151355 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 297a1306a7Sxc151355 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 307a1306a7Sxc151355 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 317a1306a7Sxc151355 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 327a1306a7Sxc151355 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 337a1306a7Sxc151355 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 347a1306a7Sxc151355 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 357a1306a7Sxc151355 * THE POSSIBILITY OF SUCH DAMAGES. 367a1306a7Sxc151355 */ 377a1306a7Sxc151355 387a1306a7Sxc151355 #ifndef _ATH_RATE_H 397a1306a7Sxc151355 #define _ATH_RATE_H 407a1306a7Sxc151355 417a1306a7Sxc151355 #ifdef __cplusplus 427a1306a7Sxc151355 extern "C" { 437a1306a7Sxc151355 #endif 447a1306a7Sxc151355 457a1306a7Sxc151355 #include "ath_impl.h" 467a1306a7Sxc151355 477a1306a7Sxc151355 void ath_rate_ctl_start(ath_t *asc, struct ieee80211_node *in); 487a1306a7Sxc151355 void ath_rate_ctl_reset(ath_t *asc, enum ieee80211_state state); 49*129d67acSlin wang - Sun Microsystems - Beijing China void ath_rate_ctl(void *arg, struct ieee80211_node *in); 507a1306a7Sxc151355 void ath_rate_update(ath_t *asc, struct ieee80211_node *in, int32_t rate); 517a1306a7Sxc151355 void ath_rate_setup(ath_t *asc, uint32_t mode); 520ba2cbe9Sxc151355 void ath_rate_cb(void *arg, struct ieee80211_node *in); 537a1306a7Sxc151355 547a1306a7Sxc151355 #ifdef __cplusplus 557a1306a7Sxc151355 } 567a1306a7Sxc151355 #endif 577a1306a7Sxc151355 587a1306a7Sxc151355 #endif /* _ATH_RATE_H */ 59