1e5b75505Sopenharmony_ci/*
2e5b75505Sopenharmony_ci * Linux defines for values that are not yet included in common C libraries
3e5b75505Sopenharmony_ci * Copyright (c) 2014, Jouni Malinen <j@w1.fi>
4e5b75505Sopenharmony_ci *
5e5b75505Sopenharmony_ci * This software may be distributed under the terms of the BSD license.
6e5b75505Sopenharmony_ci * See README for more details.
7e5b75505Sopenharmony_ci */
8e5b75505Sopenharmony_ci
9e5b75505Sopenharmony_ci#ifndef LINUX_DEFINES_H
10e5b75505Sopenharmony_ci#define LINUX_DEFINES_H
11e5b75505Sopenharmony_ci
12e5b75505Sopenharmony_ci#ifndef SO_WIFI_STATUS
13e5b75505Sopenharmony_ci# if defined(__sparc__)
14e5b75505Sopenharmony_ci#  define SO_WIFI_STATUS	0x0025
15e5b75505Sopenharmony_ci# elif defined(__parisc__)
16e5b75505Sopenharmony_ci#  define SO_WIFI_STATUS	0x4022
17e5b75505Sopenharmony_ci# else
18e5b75505Sopenharmony_ci#  define SO_WIFI_STATUS	41
19e5b75505Sopenharmony_ci# endif
20e5b75505Sopenharmony_ci
21e5b75505Sopenharmony_ci# define SCM_WIFI_STATUS	SO_WIFI_STATUS
22e5b75505Sopenharmony_ci#endif
23e5b75505Sopenharmony_ci
24e5b75505Sopenharmony_ci#ifndef SO_EE_ORIGIN_TXSTATUS
25e5b75505Sopenharmony_ci#define SO_EE_ORIGIN_TXSTATUS	4
26e5b75505Sopenharmony_ci#endif
27e5b75505Sopenharmony_ci
28e5b75505Sopenharmony_ci#ifndef PACKET_TX_TIMESTAMP
29e5b75505Sopenharmony_ci#define PACKET_TX_TIMESTAMP	16
30e5b75505Sopenharmony_ci#endif
31e5b75505Sopenharmony_ci
32e5b75505Sopenharmony_ci#ifndef IFF_LOWER_UP
33e5b75505Sopenharmony_ci#define IFF_LOWER_UP   0x10000         /* driver signals L1 up         */
34e5b75505Sopenharmony_ci#endif
35e5b75505Sopenharmony_ci#ifndef IFF_DORMANT
36e5b75505Sopenharmony_ci#define IFF_DORMANT    0x20000         /* driver signals dormant       */
37e5b75505Sopenharmony_ci#endif
38e5b75505Sopenharmony_ci
39e5b75505Sopenharmony_ci#ifndef IF_OPER_DORMANT
40e5b75505Sopenharmony_ci#define IF_OPER_DORMANT 5
41e5b75505Sopenharmony_ci#endif
42e5b75505Sopenharmony_ci#ifndef IF_OPER_UP
43e5b75505Sopenharmony_ci#define IF_OPER_UP 6
44e5b75505Sopenharmony_ci#endif
45e5b75505Sopenharmony_ci
46e5b75505Sopenharmony_ci#endif /* LINUX_DEFINES_H */
47