mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
![Ping-Ke Shih](/assets/img/avatar_default.png)
Once beacon content is changed, we update the content to wifi card by send_beacon_frame(). Then, STA with PS can wake up properly to receive its packets. Since we update beacon content to PCI wifi devices every beacon interval, the only one usb device, 8192CU, needs to update beacon content when mac80211 calling set_tim. Reported-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Tested-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20210419065956.6085-1-pkshih@realtek.com
65 lines
1.7 KiB
C
65 lines
1.7 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright(c) 2009-2012 Realtek Corporation.*/
|
|
|
|
#ifndef __RTL_CORE_H__
|
|
#define __RTL_CORE_H__
|
|
|
|
#define RTL_SUPPORTED_FILTERS \
|
|
(FIF_ALLMULTI | FIF_CONTROL | \
|
|
FIF_OTHER_BSS | \
|
|
FIF_FCSFAIL | \
|
|
FIF_BCN_PRBRESP_PROMISC)
|
|
|
|
#define DM_DIG_THRESH_HIGH 40
|
|
#define DM_DIG_THRESH_LOW 35
|
|
#define DM_FALSEALARM_THRESH_LOW 400
|
|
#define DM_FALSEALARM_THRESH_HIGH 1000
|
|
|
|
#define DM_DIG_MAX 0x3e
|
|
#define DM_DIG_MIN 0x1e
|
|
#define DM_DIG_MAX_AP 0x32
|
|
#define DM_DIG_BACKOFF_MAX 12
|
|
#define DM_DIG_BACKOFF_MIN -4
|
|
#define DM_DIG_BACKOFF_DEFAULT 10
|
|
|
|
enum cck_packet_detection_threshold {
|
|
CCK_PD_STAGE_LOWRSSI = 0,
|
|
CCK_PD_STAGE_HIGHRSSI = 1,
|
|
CCK_FA_STAGE_LOW = 2,
|
|
CCK_FA_STAGE_HIGH = 3,
|
|
CCK_PD_STAGE_MAX = 4,
|
|
};
|
|
|
|
enum dm_dig_ext_port_alg_e {
|
|
DIG_EXT_PORT_STAGE_0 = 0,
|
|
DIG_EXT_PORT_STAGE_1 = 1,
|
|
DIG_EXT_PORT_STAGE_2 = 2,
|
|
DIG_EXT_PORT_STAGE_3 = 3,
|
|
DIG_EXT_PORT_STAGE_MAX = 4,
|
|
};
|
|
|
|
enum dm_dig_connect_e {
|
|
DIG_STA_DISCONNECT,
|
|
DIG_STA_CONNECT,
|
|
DIG_STA_BEFORE_CONNECT,
|
|
DIG_MULTISTA_DISCONNECT,
|
|
DIG_MULTISTA_CONNECT,
|
|
DIG_AP_DISCONNECT,
|
|
DIG_AP_CONNECT,
|
|
DIG_AP_ADD_STATION,
|
|
DIG_CONNECT_MAX
|
|
};
|
|
|
|
extern const struct ieee80211_ops rtl_ops;
|
|
void rtl_fw_cb(const struct firmware *firmware, void *context);
|
|
void rtl_wowlan_fw_cb(const struct firmware *firmware, void *context);
|
|
void rtl_addr_delay(u32 addr);
|
|
void rtl_rfreg_delay(struct ieee80211_hw *hw, enum radio_path rfpath, u32 addr,
|
|
u32 mask, u32 data);
|
|
void rtl_bb_delay(struct ieee80211_hw *hw, u32 addr, u32 data);
|
|
bool rtl_cmd_send_packet(struct ieee80211_hw *hw, struct sk_buff *skb);
|
|
bool rtl_btc_status_false(void);
|
|
void rtl_dm_diginit(struct ieee80211_hw *hw, u32 cur_igval);
|
|
void rtl_update_beacon_work_callback(struct work_struct *work);
|
|
|
|
#endif
|