Add more definitions needed by apps/examples/wapi
This commit is contained in:
parent
b4747286b1
commit
6560db912b
@ -69,6 +69,7 @@
|
||||
*/
|
||||
|
||||
#define ARPHRD_ETHER 1 /* Ethernet */
|
||||
#define ARPHRD_IEEE80211 801 /* IEEE 802.11 */
|
||||
#define ARPHRD_IEEE802154 804 /* IEEE 802.15.4 */
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -217,10 +217,19 @@
|
||||
|
||||
/* Frequency flags */
|
||||
|
||||
#define IW_FREQ_AUTO 0x00 /* Let the driver decides */
|
||||
#define IW_FREQ_FIXED 0x01 /* Force a specific value */
|
||||
#define IW_FREQ_AUTO 0 /* Let the driver decides */
|
||||
#define IW_FREQ_FIXED 1 /* Force a specific value */
|
||||
#define IW_FREQ_NFLAGS 2
|
||||
|
||||
#define IW_MAX_FREQUENCIES 32 /* Max. frequencies in struct iw_range */
|
||||
|
||||
/* Transmit Power flags available */
|
||||
|
||||
#define IW_TXPOW_DBM 0 /* Value is in dBm */
|
||||
#define IW_TXPOW_MWATT 1 /* Value is in mW */
|
||||
#define IW_TXPOW_RELATIVE 2 /* Value is in arbitrary units */
|
||||
#define IW_TXPOW_NFLAGS 3
|
||||
|
||||
/* Scan-related */
|
||||
|
||||
#define IW_SCAN_MAX_DATA 4096 /* Maximum size of returned data */
|
||||
@ -318,15 +327,6 @@ union iwreq_data
|
||||
struct iw_param param; /* Other small parameters */
|
||||
struct iw_point data; /* Other large parameters */
|
||||
};
|
||||
|
||||
/* A Wireless Event. */
|
||||
|
||||
struct iw_event
|
||||
{
|
||||
uint16_t len; /* Real length of ata */
|
||||
uint16_t cmd; /* Wireless IOCTL command*/
|
||||
union iwreq_data u; /* Fixed IOCTL payload */
|
||||
};
|
||||
|
||||
/* This is the structure used to exchange data in wireless IOCTLs. This structure
|
||||
* is the same as 'struct ifreq', but defined for use with wireless IOCTLs.
|
||||
@ -338,5 +338,22 @@ struct iwreq
|
||||
union iwreq_data u; /* Data payload */
|
||||
};
|
||||
|
||||
/* Range of parameters (currently only frequencies) */
|
||||
|
||||
struct iw_range
|
||||
{
|
||||
uint8_t num_frequency; /* Number of frequencies in the freq[] list */
|
||||
struct iw_freq freq[IW_MAX_FREQUENCIES];
|
||||
};
|
||||
|
||||
/* A Wireless Event. */
|
||||
|
||||
struct iw_event
|
||||
{
|
||||
uint16_t len; /* Real length of ata */
|
||||
uint16_t cmd; /* Wireless IOCTL command*/
|
||||
union iwreq_data u; /* Fixed IOCTL payload */
|
||||
};
|
||||
|
||||
#endif /* CONFIG_DRIVERS_WIRELESS */
|
||||
#endif /* __INCLUDE_NUTTX_WIRELESS_H */
|
||||
|
Loading…
Reference in New Issue
Block a user