11000Sxc151355 /* 2*6235Sxc151355 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 31000Sxc151355 * Use is subject to license terms. 41000Sxc151355 */ 51000Sxc151355 61000Sxc151355 /* 71000Sxc151355 * Copyright (c) 2002-2004 Sam Leffler, Errno Consulting 81000Sxc151355 * All rights reserved. 91000Sxc151355 * 101000Sxc151355 * Redistribution and use in source and binary forms, with or without 111000Sxc151355 * modification, are permitted provided that the following conditions 121000Sxc151355 * are met: 131000Sxc151355 * 1. Redistributions of source code must retain the above copyright 141000Sxc151355 * notice, this list of conditions and the following disclaimer, 151000Sxc151355 * without modification. 161000Sxc151355 * 2. Redistributions in binary form must reproduce at minimum a disclaimer 171000Sxc151355 * similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any 181000Sxc151355 * redistribution must be conditioned upon including a substantially 191000Sxc151355 * similar Disclaimer requirement for further binary redistribution. 201000Sxc151355 * 3. Neither the names of the above-listed copyright holders nor the names 211000Sxc151355 * of any contributors may be used to endorse or promote products derived 221000Sxc151355 * from this software without specific prior written permission. 231000Sxc151355 * 241000Sxc151355 * NO WARRANTY 251000Sxc151355 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 261000Sxc151355 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 271000Sxc151355 * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY 281000Sxc151355 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 291000Sxc151355 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 301000Sxc151355 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 311000Sxc151355 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 321000Sxc151355 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 331000Sxc151355 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 341000Sxc151355 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 351000Sxc151355 * THE POSSIBILITY OF SUCH DAMAGES. 361000Sxc151355 */ 371000Sxc151355 381000Sxc151355 #ifndef _ATH_AUX_H 391000Sxc151355 #define _ATH_AUX_H 401000Sxc151355 411000Sxc151355 #ifdef __cplusplus 421000Sxc151355 extern "C" { 431000Sxc151355 #endif 441000Sxc151355 451000Sxc151355 #include "ath_hal.h" 461000Sxc151355 #include "ath_impl.h" 471000Sxc151355 481000Sxc151355 uint32_t ath_calcrxfilter(ath_t *asc); 491000Sxc151355 void ath_beacon_config(ath_t *asc); 503147Sxc151355 int ath_reset(ieee80211com_t *ic); 511000Sxc151355 int32_t ath_startrecv(ath_t *asc); 521000Sxc151355 void ath_stoprecv(ath_t *asc); 531000Sxc151355 uint32_t ath_chan2flags(ieee80211com_t *isc, 543147Sxc151355 struct ieee80211_channel *chan); 551000Sxc151355 int32_t ath_getchannels(ath_t *asc, uint32_t cc, 561000Sxc151355 HAL_BOOL outdoor, HAL_BOOL xchanmode); 573147Sxc151355 void ath_chan_change(ath_t *asc, struct ieee80211_channel *chan); 583147Sxc151355 int32_t ath_chan_set(ath_t *asc, struct ieee80211_channel *chan); 591000Sxc151355 int ath_txq_setup(ath_t *asc); 603147Sxc151355 void ath_txq_cleanup(ath_t *asc); 611000Sxc151355 void ath_rate_setup(ath_t *asc, uint32_t mode); 621000Sxc151355 void ath_setcurmode(ath_t *asc, enum ieee80211_phymode mode); 631000Sxc151355 void ath_mode_init(ath_t *asc); 641000Sxc151355 void ath_draintxq(ath_t *asc); 653147Sxc151355 int ath_key_alloc(ieee80211com_t *ic, const struct ieee80211_key *k, 663147Sxc151355 ieee80211_keyix *keyix, ieee80211_keyix *rxkeyix); 673147Sxc151355 int ath_key_delete(ieee80211com_t *ic, const struct ieee80211_key *k); 683147Sxc151355 int ath_key_set(ieee80211com_t *ic, const struct ieee80211_key *k, 693147Sxc151355 const uint8_t mac[IEEE80211_ADDR_LEN]); 703147Sxc151355 void ath_set_shortslot(ieee80211com_t *ic, int onoff); 71*6235Sxc151355 const char *ath_get_hal_status_desc(HAL_STATUS status); 721000Sxc151355 731000Sxc151355 #ifdef __cplusplus 741000Sxc151355 } 751000Sxc151355 #endif 761000Sxc151355 771000Sxc151355 #endif /* _ATH_AUX_H */ 78