#include <drv_types.h>
#include <rtw_debug.h>
#include <hal_com_h2c.h>
static unsigned char ARTHEROS_OUI1[] = …;
static unsigned char ARTHEROS_OUI2[] = …;
static unsigned char BROADCOM_OUI1[] = …;
static unsigned char BROADCOM_OUI2[] = …;
static unsigned char BROADCOM_OUI3[] = …;
static unsigned char CISCO_OUI[] = …;
static unsigned char MARVELL_OUI[] = …;
static unsigned char RALINK_OUI[] = …;
static unsigned char REALTEK_OUI[] = …;
static unsigned char AIRGOCAP_OUI[] = …;
static unsigned char RSN_TKIP_CIPHER[4] = …;
static unsigned char WPA_TKIP_CIPHER[4] = …;
#define WAIT_FOR_BCN_TO_MIN …
#define WAIT_FOR_BCN_TO_MAX …
#define DISCONNECT_BY_CHK_BCN_FAIL_OBSERV_PERIOD_IN_MS …
#define DISCONNECT_BY_CHK_BCN_FAIL_THRESHOLD …
static u8 rtw_basic_rate_cck[4] = …;
static u8 rtw_basic_rate_ofdm[3] = …;
u8 networktype_to_raid_ex(struct adapter *adapter, struct sta_info *psta)
{ … }
unsigned char ratetbl_val_2wifirate(unsigned char rate);
unsigned char ratetbl_val_2wifirate(unsigned char rate)
{ … }
int is_basicrate(struct adapter *padapter, unsigned char rate);
int is_basicrate(struct adapter *padapter, unsigned char rate)
{ … }
unsigned int ratetbl2rateset(struct adapter *padapter, unsigned char *rateset);
unsigned int ratetbl2rateset(struct adapter *padapter, unsigned char *rateset)
{ … }
void get_rate_set(struct adapter *padapter, unsigned char *pbssrate, int *bssrate_len)
{ … }
void set_mcs_rate_by_mask(u8 *mcs_set, u32 mask)
{ … }
void UpdateBrateTbl(struct adapter *Adapter, u8 *mBratesOS)
{ … }
void UpdateBrateTblForSoftAP(u8 *bssrateset, u32 bssratelen)
{ … }
void Save_DM_Func_Flag(struct adapter *padapter)
{ … }
void Restore_DM_Func_Flag(struct adapter *padapter)
{ … }
void Switch_DM_Func(struct adapter *padapter, u32 mode, u8 enable)
{ … }
void Set_MSR(struct adapter *padapter, u8 type)
{ … }
inline u8 rtw_get_oper_ch(struct adapter *adapter)
{ … }
inline void rtw_set_oper_ch(struct adapter *adapter, u8 ch)
{ … }
inline u8 rtw_get_oper_bw(struct adapter *adapter)
{ … }
inline void rtw_set_oper_bw(struct adapter *adapter, u8 bw)
{ … }
inline u8 rtw_get_oper_choffset(struct adapter *adapter)
{ … }
inline void rtw_set_oper_choffset(struct adapter *adapter, u8 offset)
{ … }
u8 rtw_get_center_ch(u8 channel, u8 chnl_bw, u8 chnl_offset)
{ … }
inline unsigned long rtw_get_on_cur_ch_time(struct adapter *adapter)
{ … }
void SelectChannel(struct adapter *padapter, unsigned char channel)
{ … }
void set_channel_bwmode(struct adapter *padapter, unsigned char channel, unsigned char channel_offset, unsigned short bwmode)
{ … }
inline u8 *get_my_bssid(struct wlan_bssid_ex *pnetwork)
{ … }
u16 get_beacon_interval(struct wlan_bssid_ex *bss)
{ … }
int is_client_associated_to_ap(struct adapter *padapter)
{ … }
int is_client_associated_to_ibss(struct adapter *padapter)
{ … }
int is_IBSS_empty(struct adapter *padapter)
{ … }
unsigned int decide_wait_for_beacon_timeout(unsigned int bcn_interval)
{ … }
void invalidate_cam_all(struct adapter *padapter)
{ … }
static u32 _ReadCAM(struct adapter *padapter, u32 addr)
{ … }
void read_cam(struct adapter *padapter, u8 entry, u8 *get_key)
{ … }
void _write_cam(struct adapter *padapter, u8 entry, u16 ctrl, u8 *mac, u8 *key)
{ … }
void _clear_cam_entry(struct adapter *padapter, u8 entry)
{ … }
inline void write_cam(struct adapter *adapter, u8 id, u16 ctrl, u8 *mac, u8 *key)
{ … }
inline void clear_cam_entry(struct adapter *adapter, u8 id)
{ … }
void write_cam_cache(struct adapter *adapter, u8 id, u16 ctrl, u8 *mac, u8 *key)
{ … }
void clear_cam_cache(struct adapter *adapter, u8 id)
{ … }
static bool _rtw_camid_is_gk(struct adapter *adapter, u8 cam_id)
{ … }
static s16 _rtw_camid_search(struct adapter *adapter, u8 *addr, s16 kid)
{ … }
s16 rtw_camid_search(struct adapter *adapter, u8 *addr, s16 kid)
{ … }
s16 rtw_camid_alloc(struct adapter *adapter, struct sta_info *sta, u8 kid)
{ … }
void rtw_camid_free(struct adapter *adapter, u8 cam_id)
{ … }
int allocate_fw_sta_entry(struct adapter *padapter)
{ … }
void flush_all_cam_entry(struct adapter *padapter)
{ … }
int WMM_param_handler(struct adapter *padapter, struct ndis_80211_var_ie *pIE)
{ … }
static void sort_wmm_ac_params(u32 *inx, u32 *edca)
{ … }
void WMMOnAssocRsp(struct adapter *padapter)
{ … }
static void bwmode_update_check(struct adapter *padapter, struct ndis_80211_var_ie *pIE)
{ … }
void HT_caps_handler(struct adapter *padapter, struct ndis_80211_var_ie *pIE)
{ … }
void HT_info_handler(struct adapter *padapter, struct ndis_80211_var_ie *pIE)
{ … }
void HTOnAssocRsp(struct adapter *padapter)
{ … }
void ERP_IE_handler(struct adapter *padapter, struct ndis_80211_var_ie *pIE)
{ … }
void VCS_update(struct adapter *padapter, struct sta_info *psta)
{ … }
void update_ldpc_stbc_cap(struct sta_info *psta)
{ … }
int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len)
{ … }
void update_beacon_info(struct adapter *padapter, u8 *pframe, uint pkt_len, struct sta_info *psta)
{ … }
unsigned int is_ap_in_tkip(struct adapter *padapter)
{ … }
int support_short_GI(struct adapter *padapter, struct HT_caps_element *pHT_caps, u8 bwmode)
{ … }
unsigned char get_highest_rate_idx(u32 mask)
{ … }
void Update_RA_Entry(struct adapter *padapter, struct sta_info *psta)
{ … }
void set_sta_rate(struct adapter *padapter, struct sta_info *psta)
{ … }
static u32 get_realtek_assoc_AP_vender(struct ndis_80211_var_ie *pIE)
{ … }
unsigned char check_assoc_AP(u8 *pframe, uint len)
{ … }
void update_IOT_info(struct adapter *padapter)
{ … }
void update_capinfo(struct adapter *Adapter, u16 updateCap)
{ … }
void update_wireless_mode(struct adapter *padapter)
{ … }
void update_sta_basic_rate(struct sta_info *psta, u8 wireless_mode)
{ … }
int update_sta_support_rate(struct adapter *padapter, u8 *pvar_ie, uint var_ie_len, int cam_idx)
{ … }
void process_addba_req(struct adapter *padapter, u8 *paddba_req, u8 *addr)
{ … }
void update_TSF(struct mlme_ext_priv *pmlmeext, u8 *pframe, uint len)
{ … }
void correct_TSF(struct adapter *padapter, struct mlme_ext_priv *pmlmeext)
{ … }
void adaptive_early_32k(struct mlme_ext_priv *pmlmeext, u8 *pframe, uint len)
{ … }
void rtw_alloc_macid(struct adapter *padapter, struct sta_info *psta)
{ … }
void rtw_release_macid(struct adapter *padapter, struct sta_info *psta)
{ … }
u8 rtw_search_max_mac_id(struct adapter *padapter)
{ … }
struct adapter *dvobj_get_port0_adapter(struct dvobj_priv *dvobj)
{ … }