mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-27 23:54:24 +00:00
Fix function call signature on rtw_* function definition
This commit is contained in:
parent
9162548bfa
commit
7bf20f5f82
@ -438,6 +438,9 @@ void rtw_chk_candidate_peer_notify(_adapter *adapter, struct wlan_network *scann
|
||||
, scanned->network.MacAddress
|
||||
, BSS_EX_TLV_IES(&scanned->network)
|
||||
, BSS_EX_TLV_IES_LEN(&scanned->network)
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0))
|
||||
, scanned->network.Rssi
|
||||
#endif
|
||||
, GFP_ATOMIC
|
||||
);
|
||||
#endif
|
||||
|
@ -364,8 +364,10 @@ void rtw_cfg80211_deinit_rfkill(struct wiphy *wiphy);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 0))
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0))
|
||||
#define rtw_cfg80211_notify_new_peer_candidate(wdev, addr, ie, ie_len, gfp) cfg80211_notify_new_peer_candidate(wdev_to_ndev(wdev), addr, ie, ie_len, gfp)
|
||||
#else
|
||||
#define rtw_cfg80211_notify_new_peer_candidate(wdev, addr, ie, ie_len, sig_dbm, gfp) cfg80211_notify_new_peer_candidate(wdev_to_ndev(wdev), addr, ie, ie_len, sig_dbm, gfp)
|
||||
#endif
|
||||
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 5, 0))
|
||||
|
@ -40,7 +40,11 @@ typedef struct rhashtable_iter rtw_rhashtable_iter;
|
||||
|
||||
int rtw_rhashtable_walk_enter(rtw_rhashtable *ht, rtw_rhashtable_iter *iter);
|
||||
#define rtw_rhashtable_walk_exit(iter) rhashtable_walk_exit(iter)
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0))
|
||||
#define rtw_rhashtable_walk_start(iter) rhashtable_walk_start(iter)
|
||||
#else
|
||||
#define rtw_rhashtable_walk_start(iter) rhashtable_walk_start_check(iter)
|
||||
#endif
|
||||
#define rtw_rhashtable_walk_next(iter) rhashtable_walk_next(iter)
|
||||
#define rtw_rhashtable_walk_stop(iter) rhashtable_walk_stop(iter)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user