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