cfg80211: send ack_signal to user in probe client response
This patch provides support to get ack signal in probe client response and in station info from user. Signed-off-by: Venkateswara Naralasetty <vnaralas@codeaurora.org> [squash in compilation fixes] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:

committed by
Johannes Berg

parent
11b05ba34d
commit
c4b50cd31d
@@ -1147,6 +1147,7 @@ struct cfg80211_tid_stats {
|
||||
* @rx_duration: aggregate PPDU duration(usecs) for all the frames from a peer
|
||||
* @pertid: per-TID statistics, see &struct cfg80211_tid_stats, using the last
|
||||
* (IEEE80211_NUM_TIDS) index for MSDUs not encapsulated in QoS-MPDUs.
|
||||
* @ack_signal: signal strength (in dBm) of the last ACK frame.
|
||||
*/
|
||||
struct station_info {
|
||||
u64 filled;
|
||||
@@ -1191,6 +1192,7 @@ struct station_info {
|
||||
u64 rx_duration;
|
||||
u8 rx_beacon_signal_avg;
|
||||
struct cfg80211_tid_stats pertid[IEEE80211_NUM_TIDS + 1];
|
||||
s8 ack_signal;
|
||||
};
|
||||
|
||||
#if IS_ENABLED(CONFIG_CFG80211)
|
||||
@@ -5838,10 +5840,13 @@ bool cfg80211_rx_unexpected_4addr_frame(struct net_device *dev,
|
||||
* @addr: the address of the peer
|
||||
* @cookie: the cookie filled in @probe_client previously
|
||||
* @acked: indicates whether probe was acked or not
|
||||
* @ack_signal: signal strength (in dBm) of the ACK frame.
|
||||
* @is_valid_ack_signal: indicates the ack_signal is valid or not.
|
||||
* @gfp: allocation flags
|
||||
*/
|
||||
void cfg80211_probe_status(struct net_device *dev, const u8 *addr,
|
||||
u64 cookie, bool acked, gfp_t gfp);
|
||||
u64 cookie, bool acked, s32 ack_signal,
|
||||
bool is_valid_ack_signal, gfp_t gfp);
|
||||
|
||||
/**
|
||||
* cfg80211_report_obss_beacon - report beacon from other APs
|
||||
|
Reference in New Issue
Block a user