--- zzzz-none-000/linux-5.4.213/net/wireless/trace.h 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/net/wireless/trace.h 2024-08-14 09:02:15.000000000 +0000 @@ -154,6 +154,25 @@ __entry->width, __entry->center_freq1, \ __entry->center_freq2 +#define FILS_AAD_ASSIGN(fa) \ + do { \ + if (fa) { \ + ether_addr_copy(__entry->macaddr, fa->macaddr); \ + memcpy(__entry->kek, fa->kek, fa->kek_len); \ + __entry->kek_len = fa->kek_len; \ + memcpy(__entry->snonce, fa->snonce, FILS_NONCE_LEN); \ + memcpy(__entry->anonce, fa->anonce, FILS_NONCE_LEN); \ + } else { \ + eth_zero_addr(__entry->macaddr); \ + memset(__entry->kek, 0, FILS_MAX_KEK_LEN); \ + __entry->kek_len = 0; \ + memset(__entry->snonce, 0, FILS_NONCE_LEN); \ + memset(__entry->anonce, 0, FILS_NONCE_LEN); \ + } \ + } while (0) +#define FILS_AAD_PR_FMT \ + "macaddr: %pM, kek: %p, kek_len: %d, anonce: %p, snonce: %p" + #define SINFO_ENTRY __field(int, generation) \ __field(u32, connected_time) \ __field(u32, inactive_time) \ @@ -510,6 +529,24 @@ WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index) ); +TRACE_EVENT(rdev_set_default_beacon_key, + TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, + u8 key_index), + TP_ARGS(wiphy, netdev, key_index), + TP_STRUCT__entry( + WIPHY_ENTRY + NETDEV_ENTRY + __field(u8, key_index) + ), + TP_fast_assign( + WIPHY_ASSIGN; + NETDEV_ASSIGN; + __entry->key_index = key_index; + ), + TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", key index: %u", + WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index) +); + TRACE_EVENT(rdev_start_ap, TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, struct cfg80211_ap_settings *settings), @@ -2557,6 +2594,28 @@ TP_ARGS(wiphy, wdev, cookie) ); +TRACE_EVENT(rdev_set_fils_aad, + TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, + struct cfg80211_fils_aad *fils_aad), + TP_ARGS(wiphy, netdev, fils_aad), + TP_STRUCT__entry(WIPHY_ENTRY + NETDEV_ENTRY + __array(u8, macaddr, ETH_ALEN) + __array(u8, kek, FILS_MAX_KEK_LEN) + __field(u8, kek_len) + __array(u8, snonce, FILS_NONCE_LEN) + __array(u8, anonce, FILS_NONCE_LEN) + ), + TP_fast_assign(WIPHY_ASSIGN; + NETDEV_ASSIGN; + FILS_AAD_ASSIGN(fils_aad); + ), + TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " FILS_AAD_PR_FMT, + WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->macaddr, + __entry->kek, __entry->kek_len, __entry->snonce, + __entry->anonce) +); + /************************************************************* * cfg80211 exported functions traces * *************************************************************/ @@ -2820,6 +2879,23 @@ TP_PROTO(struct wireless_dev *wdev, u64 cookie, bool ack), TP_ARGS(wdev, cookie, ack), TP_STRUCT__entry( + WDEV_ENTRY + __field(u64, cookie) + __field(bool, ack) + ), + TP_fast_assign( + WDEV_ASSIGN; + __entry->cookie = cookie; + __entry->ack = ack; + ), + TP_printk(WDEV_PR_FMT", cookie: %llu, ack: %s", + WDEV_PR_ARG, __entry->cookie, BOOL_TO_STR(__entry->ack)) +); + +TRACE_EVENT(cfg80211_control_port_tx_status, + TP_PROTO(struct wireless_dev *wdev, u64 cookie, bool ack), + TP_ARGS(wdev, cookie, ack), + TP_STRUCT__entry( WDEV_ENTRY __field(u64, cookie) __field(bool, ack)