FreeBSD kernel MWL device code
|
Go to the source code of this file.
Data Structures | |
struct | mwl_hal |
struct | MWL_HAL_CHANNELINFO |
struct | MWL_HAL_CHANNELINFO::mwl_hal_channel |
struct | MWL_HAL_CHANNEL_FLAGS |
struct | MWL_HAL_CHANNEL |
struct | mwl_hal_hwspec |
struct | mwl_hal_txrxdma |
struct | mwl_hal_hwstats |
struct | MWL_HAL_TXRATE |
struct | __packed |
struct | MWL_HAL_BASTREAM |
Macros | |
#define | MWL_MBSS_SUPPORT /* enable multi-bss support */ |
#define | MWL_NUM_EDCA_QUEUES 4 |
#define | MWL_NUM_HCCA_QUEUES 0 |
#define | MWL_NUM_BA_QUEUES 0 |
#define | MWL_NUM_MGMT_QUEUES 0 |
#define | MWL_NUM_ACK_QUEUES 0 |
#define | MWL_NUM_TX_QUEUES |
#define | MWL_MAX_RXWCB_QUEUES 1 |
#define | MWL_MAX_SUPPORTED_RATES 12 |
#define | MWL_MAX_SUPPORTED_MCS 32 |
#define | MWL_HAL_MAXCHAN 40 |
#define | MACREG_REG_A2H_INTERRUPT_CAUSE 0x00000C30 |
#define | MACREG_REG_INT_CODE 0x00000C14 |
#define | MACREG_REG_H2A_INTERRUPT_EVENTS 0x00000C18 |
#define | MACREG_H2ARIC_BIT_PPA_READY 0x00000001 |
#define | MACREG_REG_INT_CODE 0x00000C14 |
#define | MWL_FREQ_BAND_2DOT4GHZ 0x1 |
#define | MWL_FREQ_BAND_5GHZ 0x4 |
#define | MWL_CH_10_MHz_WIDTH 0x1 |
#define | MWL_CH_20_MHz_WIDTH 0x2 |
#define | MWL_CH_40_MHz_WIDTH 0x4 |
#define | MWL_EXT_CH_NONE 0x0 |
#define | MWL_EXT_CH_ABOVE_CTRL_CH 0x1 |
#define | MWL_EXT_CH_BELOW_CTRL_CH 0x3 |
#define | RATE_MCS 0x80 /* rate is an MCS index */ |
#define | MWL_HAL_MCAST_MAX 32 |
#define | KEY_TYPE_ID_WEP 0 |
#define | KEY_TYPE_ID_TKIP 1 |
#define | KEY_TYPE_ID_AES 2 /* AES-CCMP */ |
#define | KEY_FLAG_INUSE 0x00000001 /* indicate key is in use */ |
#define | KEY_FLAG_RXGROUPKEY 0x00000002 /* Group key for RX only */ |
#define | KEY_FLAG_TXGROUPKEY 0x00000004 /* Group key for TX */ |
#define | KEY_FLAG_PAIRWISE 0x00000008 /* pairwise */ |
#define | KEY_FLAG_RXONLY 0x00000010 /* only used for RX */ |
#define | KEY_FLAG_AUTHENTICATOR 0x00000020 /* Key is for Authenticator */ |
#define | KEY_FLAG_TSC_VALID 0x00000040 /* Sequence counters valid */ |
#define | KEY_FLAG_WEP_TXKEY 0x01000000 /* Tx key for WEP */ |
#define | KEY_FLAG_MICKEY_VALID 0x02000000 /* Tx/Rx MIC keys are valid */ |
Functions | |
struct mwl_hal * | mwl_hal_attach (device_t dev, uint16_t devid, bus_space_handle_t ioh, bus_space_tag_t iot, bus_dma_tag_t tag) |
void | mwl_hal_detach (struct mwl_hal *) |
int | mwl_hal_ismbsscapable (struct mwl_hal *) |
struct mwl_hal_vap * | mwl_hal_newvap (struct mwl_hal *, MWL_HAL_BSSTYPE, const uint8_t mac[6]) |
void | mwl_hal_delvap (struct mwl_hal_vap *) |
void | mwl_hal_setdebug (struct mwl_hal *, int) |
int | mwl_hal_getdebug (struct mwl_hal *) |
int | mwl_hal_getchannelinfo (struct mwl_hal *, int band, int chw, const MWL_HAL_CHANNELINFO **) |
static __inline void | mwl_hal_getisr (struct mwl_hal *mh, uint32_t *status) |
void | mwl_hal_intrset (struct mwl_hal *mh, uint32_t mask) |
static __inline void | mwl_hal_txstart (struct mwl_hal *mh, int qnum) |
void | mwl_hal_cmddone (struct mwl_hal *mh) |
int | mwl_hal_gethwspecs (struct mwl_hal *mh, struct mwl_hal_hwspec *) |
int | mwl_hal_sethwdma (struct mwl_hal *mh, const struct mwl_hal_txrxdma *) |
int | mwl_hal_gethwstats (struct mwl_hal *mh, struct mwl_hal_hwstats *) |
int | mwl_hal_sethtgi (struct mwl_hal_vap *, int GIType) |
int | mwl_hal_setradio (struct mwl_hal *mh, int onoff, MWL_HAL_PREAMBLE preamble) |
int | mwl_hal_setantenna (struct mwl_hal *mh, MWL_HAL_ANTENNA dirSet, int ant) |
int | mwl_hal_setrtsthreshold (struct mwl_hal_vap *, int threshold) |
int | mwl_hal_setinframode (struct mwl_hal_vap *) |
int | mwl_hal_setradardetection (struct mwl_hal *mh, MWL_HAL_RADAR action) |
int | mwl_hal_setregioncode (struct mwl_hal *mh, int regionCode) |
int | mwl_hal_setchannelswitchie (struct mwl_hal *, const MWL_HAL_CHANNEL *nextchan, uint32_t mode, uint32_t count) |
int | mwl_hal_settxrate (struct mwl_hal_vap *, MWL_HAL_TXRATE_HANDLING handling, const MWL_HAL_TXRATE *rate) |
int | mwl_hal_settxrate_auto (struct mwl_hal *, const MWL_HAL_TXRATE *rate) |
int | mwl_hal_setslottime (struct mwl_hal *mh, int usecs) |
int | mwl_hal_adjusttxpower (struct mwl_hal *, uint32_t powerLevel) |
int | mwl_hal_settxpower (struct mwl_hal *, const MWL_HAL_CHANNEL *, uint8_t maxtxpow) |
int | mwl_hal_setmcast (struct mwl_hal *mh, int nmc, const uint8_t macs[]) |
int | mwl_hal_keyset (struct mwl_hal_vap *, const MWL_HAL_KEYVAL *kv, const uint8_t mac[6]) |
int | mwl_hal_keyreset (struct mwl_hal_vap *, const MWL_HAL_KEYVAL *kv, const uint8_t mac[6]) |
int | mwl_hal_setmac (struct mwl_hal_vap *, const uint8_t addr[6]) |
int | mwl_hal_setbeacon (struct mwl_hal_vap *, const void *, size_t) |
int | mwl_hal_setpowersave_bss (struct mwl_hal_vap *, uint8_t nsta) |
int | mwl_hal_setpowersave_sta (struct mwl_hal_vap *, uint16_t aid, int ena) |
int | mwl_hal_setassocid (struct mwl_hal_vap *, const uint8_t bssId[6], uint16_t assocId) |
int | mwl_hal_setchannel (struct mwl_hal *mh, const MWL_HAL_CHANNEL *c) |
const MWL_HAL_BASTREAM * | mwl_hal_bastream_alloc (struct mwl_hal_vap *, int ba_type, const uint8_t Macaddr[6], uint8_t Tid, uint8_t ParamInfo, void *, void *) |
const MWL_HAL_BASTREAM * | mwl_hal_bastream_lookup (struct mwl_hal *mh, int s) |
int | mwl_hal_bastream_create (struct mwl_hal_vap *, const MWL_HAL_BASTREAM *, int BarThrs, int WindowSize, uint16_t seqno) |
int | mwl_hal_bastream_destroy (struct mwl_hal *mh, const MWL_HAL_BASTREAM *) |
int | mwl_hal_getwatchdogbitmap (struct mwl_hal *mh, uint8_t bitmap[1]) |
int | mwl_hal_bastream_get_seqno (struct mwl_hal *mh, const MWL_HAL_BASTREAM *, const uint8_t Macaddr[6], uint16_t *pseqno) |
void | mwl_hal_setbastreams (struct mwl_hal *mh, int mask) |
int | mwl_hal_getbastreams (struct mwl_hal *mh) |
int | mwl_hal_setaggampduratemode (struct mwl_hal *, int mode, int thresh) |
int | mwl_hal_getaggampduratemode (struct mwl_hal *, int *mode, int *thresh) |
int | mwl_hal_newstation (struct mwl_hal_vap *, const uint8_t addr[6], uint16_t aid, uint16_t sid, const MWL_HAL_PEERINFO *, int isQosSta, int wmeInfo) |
int | mwl_hal_delstation (struct mwl_hal_vap *, const uint8_t addr[6]) |
int | mwl_hal_setkeepalive (struct mwl_hal *mh) |
int | mwl_hal_setapmode (struct mwl_hal_vap *, MWL_HAL_APMODE) |
int | mwl_hal_stop (struct mwl_hal_vap *) |
int | mwl_hal_start (struct mwl_hal_vap *) |
int | mwl_hal_updatetim (struct mwl_hal_vap *, uint16_t aid, int set) |
int | mwl_hal_setgprot (struct mwl_hal *, int) |
int | mwl_hal_setwmm (struct mwl_hal *mh, int onoff) |
int | mwl_hal_setedcaparams (struct mwl_hal *mh, uint8_t qnum, uint32_t CWmin, uint32_t CWmax, uint8_t AIFSN, uint16_t TXOPLimit) |
int | mwl_hal_setrateadaptmode (struct mwl_hal *mh, uint16_t mode) |
int | mwl_hal_setcsmode (struct mwl_hal *mh, MWL_HAL_CSMODE csmode) |
int | mwl_hal_setnprot (struct mwl_hal_vap *, MWL_HAL_HTPROTECT mode) |
int | mwl_hal_setnprotmode (struct mwl_hal_vap *, uint8_t mode) |
int | mwl_hal_setoptimizationlevel (struct mwl_hal *mh, int onoff) |
int | mwl_hal_setmimops (struct mwl_hal *mh, const uint8_t addr[6], uint8_t enable, uint8_t mode) |
int | mwl_hal_getregioncode (struct mwl_hal *mh, uint8_t *countryCode) |
int | mwl_hal_GetBeacon (struct mwl_hal *mh, uint8_t *pBcn, uint16_t *pLen) |
int | mwl_hal_SetRifs (struct mwl_hal *mh, uint8_t QNum) |
int | mwl_hal_setpromisc (struct mwl_hal *, int ena) |
int | mwl_hal_getpromisc (struct mwl_hal *) |
int | mwl_hal_setcfend (struct mwl_hal *, int ena) |
int | mwl_hal_setdwds (struct mwl_hal *, int ena) |
int | mwl_hal_getdiagstate (struct mwl_hal *mh, int request, const void *args, uint32_t argsize, void **result, uint32_t *resultsize) |
int | mwl_hal_fwload (struct mwl_hal *mh, void *fwargs) |
#define KEY_FLAG_AUTHENTICATOR 0x00000020 /* Key is for Authenticator */ |
#define KEY_FLAG_INUSE 0x00000001 /* indicate key is in use */ |
#define KEY_FLAG_MICKEY_VALID 0x02000000 /* Tx/Rx MIC keys are valid */ |
#define KEY_FLAG_RXGROUPKEY 0x00000002 /* Group key for RX only */ |
#define KEY_FLAG_TSC_VALID 0x00000040 /* Sequence counters valid */ |
#define KEY_FLAG_TXGROUPKEY 0x00000004 /* Group key for TX */ |
#define MACREG_H2ARIC_BIT_PPA_READY 0x00000001 |
#define MACREG_REG_A2H_INTERRUPT_CAUSE 0x00000C30 |
#define MACREG_REG_H2A_INTERRUPT_EVENTS 0x00000C18 |
#define MACREG_REG_INT_CODE 0x00000C14 |
#define MACREG_REG_INT_CODE 0x00000C14 |
#define MWL_NUM_TX_QUEUES |
anonymous enum |
anonymous enum |
anonymous enum |
enum MWL_HAL_ANTENNA |
enum MWL_HAL_APMODE |
enum MWL_HAL_BSSTYPE |
enum MWL_HAL_CSMODE |
enum MWL_HAL_HTPROTECT |
enum MWL_HAL_PREAMBLE |
enum MWL_HAL_RADAR |
enum MWL_HAL_STATUS |
int mwl_hal_adjusttxpower | ( | struct mwl_hal * | mh0, |
uint32_t | powerLevel | ||
) |
Definition at line 1041 of file mwlhal.c.
References _CMD_SETUP, HostCmd_ACT_GEN_SET, HostCmd_CMD_802_11_RF_TX_POWER, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), MWLPRIV, WL_TX_POWERLEVEL_HIGH, WL_TX_POWERLEVEL_LOW, and WL_TX_POWERLEVEL_MEDIUM.
struct mwl_hal * mwl_hal_attach | ( | device_t | dev, |
uint16_t | devid, | ||
bus_space_handle_t | ioh, | ||
bus_space_tag_t | iot, | ||
bus_dma_tag_t | tag | ||
) |
Definition at line 245 of file mwlhal.c.
References ba2qid, mwl_hal_vap::bss_type, mwl_hal_vap::macid, mwl_hal_vap::mh, mwl_hal_priv::mh_cmdaddr, mwl_hal_priv::mh_cmdbuf, mwl_hal_priv::mh_dev, MWL_DIAG_REVS::mh_devid, mwl_hal_priv::mh_dmamap, mwl_hal_priv::mh_dmat, mwl_hal::mh_ioh, mwl_hal::mh_iot, mwl_hal_priv::mh_mtx, mwl_hal_priv::mh_mtxname, mwl_hal_priv::mh_revs, mwl_hal_priv::mh_SDRAMSIZE_Addr, mwl_hal_priv::mh_streams, mwl_hal_priv::mh_vaps, MWL_BAQID_MAX, MWL_BASTREAMS_MAX, MWL_CMDBUF_SIZE, MWL_HAL_AP, mwl_hal_load_cb(), MWL_HAL_STA, MWL_MBSS_AP_MAX, MWL_MBSS_MAX, mwl_hal_bastream::public, mwl_hal_priv::public, qid2ba, mwl_hal_bastream::stream, MWL_HAL_BASTREAM::txq, and mwl_hal_vap::vap_type.
Referenced by mwl_attach().
const MWL_HAL_BASTREAM * mwl_hal_bastream_alloc | ( | struct mwl_hal_vap * | , |
int | ba_type, | ||
const uint8_t | Macaddr[6], | ||
uint8_t | Tid, | ||
uint8_t | ParamInfo, | ||
void * | , | ||
void * | |||
) |
int mwl_hal_bastream_create | ( | struct mwl_hal_vap * | vap, |
const MWL_HAL_BASTREAM * | s, | ||
int | BarThrs, | ||
int | WindowSize, | ||
uint16_t | seqno | ||
) |
Definition at line 1465 of file mwlhal.c.
References __DECONST, _VCMD_SETUP, mwl_hal_bastream::ba_policy, BaCreateStream, BASTREAM_FLAG_DIRECTION_UPSTREAM, BASTREAM_FLAG_IMMEDIATE_TYPE, HostCmd_CMD_BASTREAM, HostCmd_RESULT_OK, IEEE80211_ADDR_COPY, IEEE80211_ADDR_LEN, mwl_hal_bastream::macaddr, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), MWLVAP, mwl_hal_bastream::paraminfo, mwl_hal_bastream::setup, mwl_hal_bastream::stream, and mwl_hal_bastream::tid.
Referenced by mwl_addba_response().
int mwl_hal_bastream_destroy | ( | struct mwl_hal * | mh, |
const MWL_HAL_BASTREAM * | s | ||
) |
Definition at line 1519 of file mwlhal.c.
References __DECONST, _CMD_SETUP, BaDestroyStream, MWL_HAL_BASTREAM::data, HostCmd_CMD_BASTREAM, mwl_hal_priv::mh_bastreams, MWL_BASTREAMS_MAX, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), MWLPRIV, mwl_hal_bastream::public, mwl_hal_bastream::setup, and mwl_hal_bastream::stream.
Referenced by mwl_addba_response(), and mwl_addba_stop().
int mwl_hal_bastream_get_seqno | ( | struct mwl_hal * | mh, |
const MWL_HAL_BASTREAM * | , | ||
const uint8_t | Macaddr[6], | ||
uint16_t * | pseqno | ||
) |
const MWL_HAL_BASTREAM * mwl_hal_bastream_lookup | ( | struct mwl_hal * | mh, |
int | s | ||
) |
Definition at line 1449 of file mwlhal.c.
References mwl_hal_priv::mh_bastreams, mwl_hal_priv::mh_streams, MWL_BASTREAMS_MAX, MWLPRIV, and mwl_hal_bastream::public.
Referenced by mwl_bawatchdog_proc().
void mwl_hal_cmddone | ( | struct mwl_hal * | mh | ) |
Definition at line 541 of file mwlhal.c.
References dumpresult(), mwl_hal_priv::mh_debug, mwl_hal_priv::mh_dev, MWL_HAL_DEBUG_CMDDONE, and MWLPRIV.
Referenced by mwl_intr().
int mwl_hal_delstation | ( | struct mwl_hal_vap * | , |
const uint8_t | addr[6] | ||
) |
void mwl_hal_delvap | ( | struct mwl_hal_vap * | vap | ) |
Definition at line 433 of file mwlhal.c.
References mwl_hal_vap::mh.
Referenced by mwl_vap_delete().
void mwl_hal_detach | ( | struct mwl_hal * | mh0 | ) |
Definition at line 371 of file mwlhal.c.
References mwl_hal_priv::mh_cmdbuf, mwl_hal_priv::mh_dmamap, mwl_hal_priv::mh_dmat, mwl_hal_priv::mh_mtx, and MWLPRIV.
Referenced by mwl_attach(), and mwl_detach().
int mwl_hal_fwload | ( | struct mwl_hal * | mh, |
void * | fwargs | ||
) |
Set up sdram controller for superflyv2
Set up sdram controller for superflyv2
Definition at line 2525 of file mwlhal.c.
References FW_CHECK_USECS, FW_DOWNLOAD_BLOCK_SIZE, FW_MAX_NUM_CHECKS, HostCmd_SOFTAP_FWRDY_SIGNATURE, HostCmd_SOFTAP_MODE, HostCmd_STA_MODE, MACREG_A2HRIC_BIT_MASK, MACREG_REG_A2H_INTERRUPT_CAUSE, MACREG_REG_A2H_INTERRUPT_CLEAR_SEL, MACREG_REG_A2H_INTERRUPT_MASK, MACREG_REG_A2H_INTERRUPT_STATUS_MASK, MACREG_REG_GEN_PTR, MACREG_REG_INT_CODE, MACREG_REG_SCRATCH, mwl_hal_priv::mh_cmdbuf, mwl_hal_priv::mh_dev, mwl_hal_priv::mh_SDRAMSIZE_Addr, mwlFwReset(), mwlPokeSdramController(), MWLPRIV, mwlResetHalState(), mwlSendBlock(), mwlSendBlock2(), mwlTriggerPciCmd(), RD4(), and WR4().
Referenced by mwl_attach(), and mwl_hal_getdiagstate().
int mwl_hal_getaggampduratemode | ( | struct mwl_hal * | mh0, |
int * | mode, | ||
int * | thresh | ||
) |
Definition at line 1616 of file mwlhal.c.
References _CMD_SETUP, HostCmd_CMD_AMPDU_RETRY_RATEDROP_MODE, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLPRIV.
int mwl_hal_getbastreams | ( | struct mwl_hal * | mh | ) |
Definition at line 464 of file mwlhal.c.
References mwl_hal_vap::mh, and MWLPRIV.
int mwl_hal_GetBeacon | ( | struct mwl_hal * | mh, |
uint8_t * | pBcn, | ||
uint16_t * | pLen | ||
) |
Definition at line 2194 of file mwlhal.c.
References _CMD_SETUP, HostCmd_CMD_GET_BEACON, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLPRIV.
int mwl_hal_getchannelinfo | ( | struct mwl_hal * | mh0, |
int | band, | ||
int | chw, | ||
const MWL_HAL_CHANNELINFO ** | ci | ||
) |
Definition at line 1137 of file mwlhal.c.
References mwl_hal_priv::mh_20M, mwl_hal_priv::mh_20M_5G, mwl_hal_priv::mh_40M, mwl_hal_priv::mh_40M_5G, MWL_CH_20_MHz_WIDTH, MWL_FREQ_BAND_2DOT4GHZ, MWL_FREQ_BAND_5GHZ, and MWLPRIV.
Referenced by getchannels(), and mwl_setregdomain().
int mwl_hal_getdebug | ( | struct mwl_hal * | mh | ) |
Definition at line 452 of file mwlhal.c.
References mwl_hal_vap::mh, and MWLPRIV.
int mwl_hal_getdiagstate | ( | struct mwl_hal * | mh, |
int | request, | ||
const void * | args, | ||
uint32_t | argsize, | ||
void ** | result, | ||
uint32_t * | resultsize | ||
) |
Definition at line 2306 of file mwlhal.c.
References __DECONST, mwl_hal_priv::mh_cmdbuf, mwl_hal_priv::mh_dev, mwl_hal_priv::mh_revs, MWL_DIAG_CMD_FWLOAD, MWL_DIAG_CMD_HOSTCMD, MWL_DIAG_CMD_REGS, MWL_DIAG_CMD_REVS, mwl_hal_fwload(), mwl_hal_getregdump(), MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLPRIV.
int mwl_hal_gethwspecs | ( | struct mwl_hal * | mh, |
struct mwl_hal_hwspec * | hw | ||
) |
Definition at line 560 of file mwlhal.c.
References _CMD_SETUP, mwl_hal_hwspec::fwReleaseNumber, HostCmd_CMD_GET_HW_SPEC, mwl_hal_hwspec::hostInterface, mwl_hal_hwspec::hwVersion, IEEE80211_ADDR_COPY, IEEE80211_ADDR_LEN, mwl_hal_hwspec::macAddr, mwl_hal_hwspec::maxNumMCAddr, mwl_hal_hwspec::maxNumWCB, mwl_hal_priv::mh_bastreams, mwl_hal_priv::mh_cmdaddr, MWL_DIAG_REVS::mh_macRev, MWL_DIAG_REVS::mh_phyRev, mwl_hal_priv::mh_revs, MWL_BASTREAMS_MAX, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), MWLPRIV, mwl_hal_hwspec::numAntennas, mwl_hal_hwspec::regionCode, mwl_hal_hwspec::rxDescRead, mwl_hal_hwspec::rxDescWrite, and mwl_hal_hwspec::wcbBase.
Referenced by mwl_attach().
int mwl_hal_gethwstats | ( | struct mwl_hal * | mh, |
struct mwl_hal_hwstats * | stats | ||
) |
Definition at line 649 of file mwlhal.c.
References _CMD_SETUP, mwl_hal_hwstats::FCSErrorCount, HostCmd_CMD_802_11_GET_STAT, mwl_hal_priv::mh_FCSErrorCount, mwl_hal_priv::mh_RTSFailures, mwl_hal_priv::mh_RTSSuccesses, mwl_hal_priv::mh_RxDuplicateFrames, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), MWLPRIV, RD4(), mwl_hal_hwstats::RTSFailures, mwl_hal_hwstats::RTSSuccesses, mwl_hal_hwstats::RxDuplicateFrames, and mwl_hal_hwstats::TxRetrySuccesses.
Referenced by mwl_ioctl().
|
static |
Definition at line 128 of file mwlhal.h.
References MACREG_REG_A2H_INTERRUPT_CAUSE, MACREG_REG_INT_CODE, mwl_hal::mh_imask, mwl_hal::mh_ioh, and mwl_hal::mh_iot.
Referenced by mwl_intr().
int mwl_hal_getpromisc | ( | struct mwl_hal * | mh0 | ) |
Definition at line 2182 of file mwlhal.c.
References MACREG_REG_PROMISCUOUS, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), MWLPRIV, and RD4().
int mwl_hal_getregioncode | ( | struct mwl_hal * | mh, |
uint8_t * | countryCode | ||
) |
Definition at line 2152 of file mwlhal.c.
References mwl_hal_priv::mh_cmdbuf, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlGetCalTable(), and MWLPRIV.
int mwl_hal_getwatchdogbitmap | ( | struct mwl_hal * | mh, |
uint8_t | bitmap[1] | ||
) |
Definition at line 1572 of file mwlhal.c.
References _CMD_SETUP, HostCmd_CMD_GET_WATCHDOG_BITMAP, MWL_BAQID_MAX, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), MWLPRIV, and qid2ba.
Referenced by mwl_bawatchdog_proc().
void mwl_hal_intrset | ( | struct mwl_hal * | mh, |
uint32_t | mask | ||
) |
Definition at line 505 of file mwlhal.c.
References MACREG_REG_A2H_INTERRUPT_MASK, MACREG_REG_INT_CODE, mwl_hal::mh_imask, MWLPRIV, mwl_hal_priv::public, RD4(), and WR4().
Referenced by mwl_chan_set(), mwl_ext_free(), mwl_init(), mwl_reset(), mwl_rx_proc(), and mwl_vap_delete().
int mwl_hal_ismbsscapable | ( | struct mwl_hal * | mh | ) |
Definition at line 470 of file mwlhal.c.
References mwl_hal_vap::mh, MHF_MBSS, and MWLPRIV.
Referenced by assign_address(), and mwl_announce().
int mwl_hal_keyreset | ( | struct mwl_hal_vap * | , |
const MWL_HAL_KEYVAL * | kv, | ||
const uint8_t | mac[6] | ||
) |
int mwl_hal_keyset | ( | struct mwl_hal_vap * | , |
const MWL_HAL_KEYVAL * | kv, | ||
const uint8_t | mac[6] | ||
) |
int mwl_hal_newstation | ( | struct mwl_hal_vap * | , |
const uint8_t | addr[6], | ||
uint16_t | aid, | ||
uint16_t | sid, | ||
const MWL_HAL_PEERINFO * | , | ||
int | isQosSta, | ||
int | wmeInfo | ||
) |
struct mwl_hal_vap * mwl_hal_newvap | ( | struct mwl_hal * | , |
MWL_HAL_BSSTYPE | , | ||
const uint8_t | mac[6] | ||
) |
int mwl_hal_setaggampduratemode | ( | struct mwl_hal * | mh0, |
int | mode, | ||
int | thresh | ||
) |
Definition at line 1597 of file mwlhal.c.
References _CMD_SETUP, HostCmd_CMD_AMPDU_RETRY_RATEDROP_MODE, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLPRIV.
Referenced by mwl_hal_reset().
int mwl_hal_setantenna | ( | struct mwl_hal * | mh, |
MWL_HAL_ANTENNA | dirSet, | ||
int | ant | ||
) |
Definition at line 750 of file mwlhal.c.
References _CMD_SETUP, _HostCmd_DS_802_11_RF_ANTENNA::Action, _HostCmd_DS_802_11_RF_ANTENNA::AntennaMode, HostCmd_CMD_802_11_RF_ANTENNA, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), MWLPRIV, WL_ANTENNATYPE_RX, and WL_ANTENNATYPE_TX.
Referenced by mwl_hal_reset().
int mwl_hal_setapmode | ( | struct mwl_hal_vap * | vap, |
MWL_HAL_APMODE | ApMode | ||
) |
Definition at line 1763 of file mwlhal.c.
References _VCMD_SETUP, HostCmd_CMD_SET_APMODE, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLVAP.
Referenced by mwl_setapmode().
int mwl_hal_setassocid | ( | struct mwl_hal_vap * | , |
const uint8_t | bssId[6], | ||
uint16_t | assocId | ||
) |
void mwl_hal_setbastreams | ( | struct mwl_hal * | mh, |
int | mask | ||
) |
Definition at line 458 of file mwlhal.c.
References mwl_hal_vap::mh, MWL_BASTREAMS_MAX, and MWLPRIV.
int mwl_hal_setbeacon | ( | struct mwl_hal_vap * | vap, |
const void * | frame, | ||
size_t | frameLen | ||
) |
Definition at line 1282 of file mwlhal.c.
References _VCMD_SETUP, HostCmd_CMD_SET_BEACON, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLVAP.
Referenced by mwl_beacon_setup().
int mwl_hal_setcfend | ( | struct mwl_hal * | mh0, |
int | ena | ||
) |
Definition at line 1638 of file mwlhal.c.
References _CMD_SETUP, HostCmd_CMD_CFEND_ENABLE, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLPRIV.
Referenced by mwl_hal_reset().
int mwl_hal_setchannel | ( | struct mwl_hal * | mh, |
const MWL_HAL_CHANNEL * | c | ||
) |
Definition at line 1354 of file mwlhal.c.
References _CMD_SETUP, MWL_HAL_CHANNEL::channel, cvtChannelFlags(), HostCmd_ACT_GEN_SET, HostCmd_CMD_SET_RF_CHANNEL, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLPRIV.
Referenced by mwl_chan_set().
int mwl_hal_setchannelswitchie | ( | struct mwl_hal * | mh0, |
const MWL_HAL_CHANNEL * | nextchan, | ||
uint32_t | mode, | ||
uint32_t | count | ||
) |
Definition at line 886 of file mwlhal.c.
References _CMD_SETUP, MWL_HAL_CHANNEL::channel, cvtChannelFlags(), HostCmd_CMD_SET_SWITCH_CHANNEL, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLPRIV.
Referenced by mwl_startcsa().
int mwl_hal_setcsmode | ( | struct mwl_hal * | mh, |
MWL_HAL_CSMODE | csmode | ||
) |
Definition at line 1901 of file mwlhal.c.
References _CMD_SETUP, HostCmd_ACT_GEN_SET, HostCmd_CMD_SET_LINKADAPT_CS_MODE, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLPRIV.
Referenced by mwl_newstate().
void mwl_hal_setdebug | ( | struct mwl_hal * | mh, |
int | debug | ||
) |
Definition at line 446 of file mwlhal.c.
References mwl_hal_vap::mh, and MWLPRIV.
int mwl_hal_setdwds | ( | struct mwl_hal * | mh0, |
int | ena | ||
) |
Definition at line 1655 of file mwlhal.c.
References _CMD_SETUP, HostCmd_CMD_DWDS_ENABLE, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLPRIV.
Referenced by mwl_newstate().
int mwl_hal_setedcaparams | ( | struct mwl_hal * | mh, |
uint8_t | qnum, | ||
uint32_t | CWmin, | ||
uint32_t | CWmax, | ||
uint8_t | AIFSN, | ||
uint16_t | TXOPLimit | ||
) |
Definition at line 1854 of file mwlhal.c.
References _CMD_SETUP, HostCmd_CMD_SET_EDCA_PARAMS, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLPRIV.
Referenced by mwl_txq_update().
int mwl_hal_setgprot | ( | struct mwl_hal * | mh0, |
int | prot | ||
) |
Definition at line 1820 of file mwlhal.c.
References _CMD_SETUP, HostCmd_CMD_SET_G_PROTECT_FLAG, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLPRIV.
Referenced by mwl_updateslot().
int mwl_hal_sethtgi | ( | struct mwl_hal_vap * | vap, |
int | GIType | ||
) |
Definition at line 692 of file mwlhal.c.
References _VCMD_SETUP, GI_TYPE_LONG, GI_TYPE_SHORT, HostCmd_ACT_GEN_SET, HostCmd_CMD_HT_GUARD_INTERVAL, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLVAP.
Referenced by mwl_reset_vap().
int mwl_hal_sethwdma | ( | struct mwl_hal * | mh, |
const struct mwl_hal_txrxdma * | dma | ||
) |
Definition at line 608 of file mwlhal.c.
References _CMD_SETUP, HostCmd_CMD_SET_HW_SPEC, mwl_hal_txrxdma::maxNumTxWcb, mwl_hal_txrxdma::maxNumWCB, mwl_hal_priv::mh_flags, MWL_DIAG_REVS::mh_macRev, mwl_hal_priv::mh_revs, MHF_MBSS, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), MWLPRIV, mwl_hal_txrxdma::rxDescRead, SET_HW_SPEC_DISABLEMBSS, SET_HW_SPEC_HOST_POWERSAVE, SET_HW_SPEC_HOSTFORM_BEACON, SET_HW_SPEC_HOSTFORM_PROBERESP, and mwl_hal_txrxdma::wcbBase.
Referenced by mwl_setupdma().
int mwl_hal_setinframode | ( | struct mwl_hal_vap * | vap | ) |
Definition at line 799 of file mwlhal.c.
References _VCMD_SETUP, HostCmd_CMD_SET_INFRA_MODE, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLVAP.
Referenced by mwl_newstate().
int mwl_hal_setkeepalive | ( | struct mwl_hal * | mh | ) |
Definition at line 1742 of file mwlhal.c.
References _CMD_SETUP, HostCmd_CMD_SET_KEEP_ALIVE, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLPRIV.
Referenced by mwl_agestations(), and mwl_watchdog().
int mwl_hal_setmac | ( | struct mwl_hal_vap * | , |
const uint8_t | addr[6] | ||
) |
int mwl_hal_setmcast | ( | struct mwl_hal * | mh, |
int | nmc, | ||
const uint8_t | macs[] | ||
) |
Definition at line 1157 of file mwlhal.c.
References _CMD_SETUP, HostCmd_CMD_MAC_MULTICAST_ADR, IEEE80211_ADDR_LEN, MWL_HAL_LOCK(), MWL_HAL_MCAST_MAX, MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLPRIV.
Referenced by mwl_setmcastfilter().
int mwl_hal_setmimops | ( | struct mwl_hal * | mh, |
const uint8_t | addr[6], | ||
uint8_t | enable, | ||
uint8_t | mode | ||
) |
int mwl_hal_setnprot | ( | struct mwl_hal_vap * | vap, |
MWL_HAL_HTPROTECT | mode | ||
) |
Definition at line 1919 of file mwlhal.c.
References _VCMD_SETUP, HostCmd_CMD_SET_N_PROTECT_FLAG, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLVAP.
Referenced by mwl_reset_vap().
int mwl_hal_setnprotmode | ( | struct mwl_hal_vap * | vap, |
uint8_t | mode | ||
) |
Definition at line 1937 of file mwlhal.c.
References _VCMD_SETUP, HostCmd_CMD_SET_N_PROTECT_OPMODE, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLVAP.
Referenced by mwl_beacon_update(), and mwl_reset_vap().
int mwl_hal_setoptimizationlevel | ( | struct mwl_hal * | mh, |
int | onoff | ||
) |
Definition at line 1954 of file mwlhal.c.
References _CMD_SETUP, HostCmd_CMD_SET_OPTIMIZATION_LEVEL, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLPRIV.
Referenced by mwl_hal_reset().
int mwl_hal_setpowersave_bss | ( | struct mwl_hal_vap * | vap, |
uint8_t | nsta | ||
) |
Definition at line 1302 of file mwlhal.c.
References _VCMD_SETUP, HostCmd_CMD_SET_POWERSAVESTATION, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLVAP.
int mwl_hal_setpowersave_sta | ( | struct mwl_hal_vap * | vap, |
uint16_t | aid, | ||
int | ena | ||
) |
Definition at line 1319 of file mwlhal.c.
References _VCMD_SETUP, HostCmd_CMD_SET_TIM, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLVAP.
int mwl_hal_setpromisc | ( | struct mwl_hal * | mh0, |
int | ena | ||
) |
Definition at line 2169 of file mwlhal.c.
References MACREG_REG_PROMISCUOUS, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), MWLPRIV, RD4(), and WR4().
Referenced by mwl_mode_init(), and mwl_update_promisc().
int mwl_hal_setradardetection | ( | struct mwl_hal * | mh, |
MWL_HAL_RADAR | action | ||
) |
Definition at line 818 of file mwlhal.c.
References _CMD_SETUP, DOMAIN_CODE_ETSI_131, HostCmd_CMD_802_11H_DETECT_RADAR, mwl_hal_priv::mh_regioncode, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLPRIV.
Referenced by mwl_newstate().
int mwl_hal_setradio | ( | struct mwl_hal * | mh, |
int | onoff, | ||
MWL_HAL_PREAMBLE | preamble | ||
) |
Definition at line 722 of file mwlhal.c.
References _CMD_SETUP, HostCmd_ACT_GEN_SET, HostCmd_CMD_802_11_RADIO_CONTROL, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLPRIV.
Referenced by mwl_hal_reset().
int mwl_hal_setrateadaptmode | ( | struct mwl_hal * | mh, |
uint16_t | mode | ||
) |
Definition at line 1883 of file mwlhal.c.
References _CMD_SETUP, HostCmd_ACT_GEN_SET, HostCmd_CMD_SET_RATE_ADAPT_MODE, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLPRIV.
Referenced by mwl_hal_reset().
int mwl_hal_setregioncode | ( | struct mwl_hal * | mh, |
int | regionCode | ||
) |
Definition at line 910 of file mwlhal.c.
References _CMD_SETUP, DOMAIN_CODE_ETSI, DOMAIN_CODE_ETSI_131, HostCmd_CMD_SET_REGION_CODE, mwl_hal_priv::mh_regioncode, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLPRIV.
Referenced by mwl_hal_reset().
int mwl_hal_SetRifs | ( | struct mwl_hal * | mh, |
uint8_t | QNum | ||
) |
Definition at line 2215 of file mwlhal.c.
References _CMD_SETUP, HostCmd_CMD_SET_RIFS, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLPRIV.
int mwl_hal_setrtsthreshold | ( | struct mwl_hal_vap * | vap, |
int | threshold | ||
) |
Definition at line 778 of file mwlhal.c.
References _VCMD_SETUP, HostCmd_ACT_GEN_SET, HostCmd_CMD_802_11_RTS_THSD, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLVAP.
Referenced by mwl_newstate(), and mwl_reset_vap().
int mwl_hal_setslottime | ( | struct mwl_hal * | mh, |
int | usecs | ||
) |
Definition at line 1020 of file mwlhal.c.
References _CMD_SETUP, HostCmd_ACT_GEN_SET, HostCmd_CMD_802_11_SET_SLOT, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLPRIV.
int mwl_hal_settxpower | ( | struct mwl_hal * | mh0, |
const MWL_HAL_CHANNEL * | c, | ||
uint8_t | maxtxpow | ||
) |
Definition at line 1100 of file mwlhal.c.
References _CMD_SETUP, MWL_HAL_CHANNEL::channel, MWL_HAL_CHANNEL::channelFlags, findchannel(), MWL_HAL_CHANNEL_FLAGS::FreqBand, HostCmd_ACT_GEN_SET_LIST, HostCmd_CMD_802_11_RF_TX_POWER, mwl_hal_priv::mh_dev, MWL_FREQ_BAND_5GHZ, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLPRIV.
Referenced by mwl_chan_set().
int mwl_hal_settxrate | ( | struct mwl_hal_vap * | vap, |
MWL_HAL_TXRATE_HANDLING | handling, | ||
const MWL_HAL_TXRATE * | rate | ||
) |
Definition at line 940 of file mwlhal.c.
References _VCMD_SETUP, FIXED_RATE_WITH_AUTO_RATE_DROP, FIXED_RATE_WITHOUT_AUTORATE_DROP, HostCmd_ACT_GEN_SET, HostCmd_ACT_NOT_USE_FIXED_RATE, HostCmd_CMD_SET_FIXED_RATE, MWL_HAL_TXRATE::McastRate, MWL_HAL_TXRATE::MgtRate, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), MWLVAP, MWL_HAL_TXRATE::Rate, RATE_FIXED, RATE_FIXED_DROP, MWL_HAL_TXRATE::RateSeries, RATETYPE, RATEVAL, RETRY_COUNT_VALID, and MWL_HAL_TXRATE::TryCount.
Referenced by mwl_setrates().
int mwl_hal_settxrate_auto | ( | struct mwl_hal * | mh0, |
const MWL_HAL_TXRATE * | rate | ||
) |
Definition at line 994 of file mwlhal.c.
References _CMD_SETUP, HostCmd_ACT_NOT_USE_FIXED_RATE, HostCmd_CMD_SET_FIXED_RATE, MWL_HAL_TXRATE::McastRate, MWL_HAL_TXRATE::MgtRate, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), MWLPRIV, RATETYPE, and RATEVAL.
Referenced by mwl_setcurchanrates().
int mwl_hal_setwmm | ( | struct mwl_hal * | mh, |
int | onoff | ||
) |
Definition at line 1837 of file mwlhal.c.
References _CMD_SETUP, HostCmd_CMD_SET_WMM_MODE, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLPRIV.
Referenced by mwl_hal_reset().
int mwl_hal_start | ( | struct mwl_hal_vap * | vap | ) |
Definition at line 1802 of file mwlhal.c.
References _VCMD_SETUP, mwl_hal_vap::flags, HostCmd_ACT_GEN_ON, HostCmd_CMD_BSS_START, MVF_RUNNING, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLVAP.
Referenced by mwl_newstate().
int mwl_hal_stop | ( | struct mwl_hal_vap * | vap | ) |
Definition at line 1781 of file mwlhal.c.
References _VCMD_SETUP, mwl_hal_vap::flags, HostCmd_ACT_GEN_OFF, HostCmd_CMD_BSS_START, MVF_RUNNING, MWL_HAL_LOCK(), MWL_HAL_UNLOCK(), mwlExecuteCmd(), and MWLVAP.
Referenced by mwl_newstate().
|
static |
Definition at line 159 of file mwlhal.h.
References MACREG_H2ARIC_BIT_PPA_READY, MACREG_REG_H2A_INTERRUPT_EVENTS, MACREG_REG_INT_CODE, mwl_hal::mh_ioh, and mwl_hal::mh_iot.
Referenced by mwl_raw_xmit(), mwl_rx_proc(), mwl_start(), and mwl_tx_proc().
int mwl_hal_updatetim | ( | struct mwl_hal_vap * | , |
uint16_t | aid, | ||
int | set | ||
) |