2 * Linux defines for values that are not yet included in common C libraries
3 * Copyright (c) 2014, Jouni Malinen <j@w1.fi>
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
9 #ifndef LINUX_DEFINES_H
10 #define LINUX_DEFINES_H
12 #ifndef SO_WIFI_STATUS
13 # if defined(__sparc__)
14 # define SO_WIFI_STATUS 0x0025
15 # elif defined(__parisc__)
16 # define SO_WIFI_STATUS 0x4022
18 # define SO_WIFI_STATUS 41
21 # define SCM_WIFI_STATUS SO_WIFI_STATUS
24 #ifndef SO_EE_ORIGIN_TXSTATUS
25 #define SO_EE_ORIGIN_TXSTATUS 4
28 #ifndef PACKET_TX_TIMESTAMP
29 #define PACKET_TX_TIMESTAMP 16
33 #define IFF_LOWER_UP 0x10000 /* driver signals L1 up */
36 #define IFF_DORMANT 0x20000 /* driver signals dormant */
39 #ifndef IF_OPER_DORMANT
40 #define IF_OPER_DORMANT 5
46 #endif /* LINUX_DEFINES_H */