diff options
Diffstat (limited to 'include/net/sock.h')
-rw-r--r-- | include/net/sock.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 5ac682f73d63..fa6f5381c5d6 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -564,6 +564,7 @@ enum sock_flags { | |||
564 | SOCK_FASYNC, /* fasync() active */ | 564 | SOCK_FASYNC, /* fasync() active */ |
565 | SOCK_RXQ_OVFL, | 565 | SOCK_RXQ_OVFL, |
566 | SOCK_ZEROCOPY, /* buffers from userspace */ | 566 | SOCK_ZEROCOPY, /* buffers from userspace */ |
567 | SOCK_WIFI_STATUS, /* push wifi status to userspace */ | ||
567 | }; | 568 | }; |
568 | 569 | ||
569 | static inline void sock_copy_flags(struct sock *nsk, struct sock *osk) | 570 | static inline void sock_copy_flags(struct sock *nsk, struct sock *osk) |
@@ -1714,6 +1715,8 @@ static inline int sock_intr_errno(long timeo) | |||
1714 | 1715 | ||
1715 | extern void __sock_recv_timestamp(struct msghdr *msg, struct sock *sk, | 1716 | extern void __sock_recv_timestamp(struct msghdr *msg, struct sock *sk, |
1716 | struct sk_buff *skb); | 1717 | struct sk_buff *skb); |
1718 | extern void __sock_recv_wifi_status(struct msghdr *msg, struct sock *sk, | ||
1719 | struct sk_buff *skb); | ||
1717 | 1720 | ||
1718 | static __inline__ void | 1721 | static __inline__ void |
1719 | sock_recv_timestamp(struct msghdr *msg, struct sock *sk, struct sk_buff *skb) | 1722 | sock_recv_timestamp(struct msghdr *msg, struct sock *sk, struct sk_buff *skb) |
@@ -1741,6 +1744,9 @@ sock_recv_timestamp(struct msghdr *msg, struct sock *sk, struct sk_buff *skb) | |||
1741 | __sock_recv_timestamp(msg, sk, skb); | 1744 | __sock_recv_timestamp(msg, sk, skb); |
1742 | else | 1745 | else |
1743 | sk->sk_stamp = kt; | 1746 | sk->sk_stamp = kt; |
1747 | |||
1748 | if (sock_flag(sk, SOCK_WIFI_STATUS) && skb->wifi_acked_valid) | ||
1749 | __sock_recv_wifi_status(msg, sk, skb); | ||
1744 | } | 1750 | } |
1745 | 1751 | ||
1746 | extern void __sock_recv_ts_and_drops(struct msghdr *msg, struct sock *sk, | 1752 | extern void __sock_recv_ts_and_drops(struct msghdr *msg, struct sock *sk, |