/*
* Linux cfgp2p driver
*
- * Copyright (C) 1999-2018, Broadcom.
+ * Copyright (C) 1999-2019, Broadcom.
*
* Unless you and Broadcom execute a separate written software license
* agreement governing use of this software, this software is licensed to you
*
* <<Broadcom-WL-IPTag/Open:>>
*
- * $Id: wl_cfgp2p.h 710886 2017-07-14 08:39:03Z $
+ * $Id: wl_cfgp2p.h 794110 2018-12-12 05:03:21Z $
*/
#ifndef _wl_cfgp2p_h_
#define _wl_cfgp2p_h_
};
struct p2p_info {
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
- struct bcm_cfg80211 *cfg;
-#endif
bool on; /**< p2p on/off switch */
bool scan;
int16 search_state;
s8 vir_ifname[IFNAMSIZ];
unsigned long status;
struct p2p_bss bss[P2PAPI_BSSCFG_MAX];
- struct timer_list listen_timer;
+ timer_list_compat_t listen_timer;
wl_p2p_sched_t noa;
wl_p2p_ops_t ops;
wlc_ssid_t ssid;
DHD_LOG_DUMP_WRITE args; \
} \
} while (0)
+#define CFGP2P_ACTION(args) \
+ do { \
+ if (wl_dbg_level & WL_DBG_P2P_ACTION) { \
+ printk(KERN_DEBUG "CFGP2P-ACTION) %s :", __func__); \
+ printk args; \
+ DHD_LOG_DUMP_WRITE("[%s] %s: ", \
+ dhd_log_dump_get_timestamp(), __func__); \
+ DHD_LOG_DUMP_WRITE args; \
+ } \
+ } while (0)
#else
#define CFGP2P_ERR(args) \
do { \
printk args; \
} \
} while (0)
-#endif /* DHD_LOG_DUMP */
-#define CFGP2P_DBG(args) \
+#define CFGP2P_ACTION(args) \
do { \
- if (wl_dbg_level & WL_DBG_DBG) { \
- printk(KERN_INFO "CFGP2P-DEBUG) %s :", __func__); \
+ if (wl_dbg_level & WL_DBG_P2P_ACTION) { \
+ printk(KERN_INFO "CFGP2P-ACTION) %s :", __func__); \
printk args; \
} \
} while (0)
+#endif /* DHD_LOG_DUMP */
-#define CFGP2P_ACTION(args) \
+#define CFGP2P_DBG(args) \
do { \
- if (wl_dbg_level & WL_DBG_P2P_ACTION) { \
- printk(KERN_INFO "CFGP2P-ACTION) %s :", __func__); \
+ if (wl_dbg_level & WL_DBG_DBG) { \
+ printk(KERN_INFO "CFGP2P-DEBUG) %s :", __func__); \
printk args; \
} \
} while (0)
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
-#define INIT_TIMER(timer, func, duration, extra_delay) \
- do { \
- timer_setup(timer, func, 0); \
- timer->expires = jiffies + msecs_to_jiffies(duration + extra_delay); \
- add_timer(timer); \
- } while (0);
-#else
+
#define INIT_TIMER(timer, func, duration, extra_delay) \
do { \
- init_timer(timer); \
- timer->function = func; \
- timer->expires = jiffies + msecs_to_jiffies(duration + extra_delay); \
- timer->data = (unsigned long) cfg; \
+ init_timer_compat(timer, func, cfg); \
+ timer_expires(timer) = jiffies + msecs_to_jiffies(duration + extra_delay); \
add_timer(timer); \
} while (0);
-#endif
#if (LINUX_VERSION_CODE <= KERNEL_VERSION(3, 0, 8))
#ifdef WL_SUPPORT_BACKPORTED_KPATCHES
#define P2P_ECSA_CNT 50
extern void
-wl_cfgp2p_listen_expired(
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
- struct timer_list *t
-#else
- unsigned long data
-#endif
-);
+wl_cfgp2p_listen_expired(unsigned long data);
extern bool
wl_cfgp2p_is_pub_action(void *frame, u32 frame_len);
extern bool