mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-07 05:53:06 +00:00
rtl8188eu: Routine rtw_get_current_time() is a synonym for jiffies
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
537fff9e9d
commit
45a86628d2
32 changed files with 127 additions and 133 deletions
|
@ -771,8 +771,8 @@ struct rf_ctl_t {
|
|||
|
||||
#define RTW_CAC_STOPPED 0
|
||||
#define IS_CAC_STOPPED(rfctl) ((rfctl)->cac_end_time == RTW_CAC_STOPPED)
|
||||
#define IS_CH_WAITING(rfctl) (!IS_CAC_STOPPED(rfctl) && time_after((unsigned long)(rfctl)->cac_end_time, (unsigned long)rtw_get_current_time()))
|
||||
#define IS_UNDER_CAC(rfctl) (IS_CH_WAITING(rfctl) && time_after((unsigned long)rtw_get_current_time(), (unsigned long)(rfctl)->cac_start_time))
|
||||
#define IS_CH_WAITING(rfctl) (!IS_CAC_STOPPED(rfctl) && time_after((unsigned long)(rfctl)->cac_end_time, (unsigned long)jiffies))
|
||||
#define IS_UNDER_CAC(rfctl) (IS_CH_WAITING(rfctl) && time_after((unsigned long)jiffies, (unsigned long)(rfctl)->cac_start_time))
|
||||
|
||||
#ifdef CONFIG_MBSSID_CAM
|
||||
#define TOTAL_MBID_CAM_NUM 8
|
||||
|
|
|
@ -268,7 +268,6 @@ extern void _rtw_init_queue(_queue *pqueue);
|
|||
extern u32 _rtw_queue_empty(_queue *pqueue);
|
||||
extern u32 rtw_end_of_queue_search(_list *queue, _list *pelement);
|
||||
|
||||
extern u32 rtw_get_current_time(void);
|
||||
extern u32 rtw_systime_to_ms(u32 systime);
|
||||
extern u32 rtw_ms_to_systime(u32 ms);
|
||||
extern s32 rtw_get_passing_time_ms(u32 start);
|
||||
|
|
|
@ -506,7 +506,7 @@ void rtw_rfctl_init(_adapter *adapter);
|
|||
|
||||
#ifdef CONFIG_DFS_MASTER
|
||||
struct rf_ctl_t;
|
||||
#define CH_IS_NON_OCP(rt_ch_info) (time_after((unsigned long)(rt_ch_info)->non_ocp_end_time, (unsigned long)rtw_get_current_time()))
|
||||
#define CH_IS_NON_OCP(rt_ch_info) (time_after((unsigned long)(rt_ch_info)->non_ocp_end_time, (unsigned long)jiffies))
|
||||
bool rtw_is_cac_reset_needed(_adapter *adapter, u8 ch, u8 bw, u8 offset);
|
||||
bool _rtw_rfctl_overlap_radar_detect_ch(struct rf_ctl_t *rfctl, u8 ch, u8 bw, u8 offset);
|
||||
bool rtw_rfctl_overlap_radar_detect_ch(struct rf_ctl_t *rfctl);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue