diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-23 17:50:24 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-23 17:50:24 +0000 |
commit | 6ef55ba3276ba85cb30d07c528266d92067725d4 (patch) | |
tree | a39136fabb5ebeb5711a4780ecae6ca175870f6b /contrib/package/iwinfo/src/include | |
parent | 50bd4a979be2f56e9872f3a4dcd3c17fc4334957 (diff) |
libiwinfo: madwifi fixes, use direct ioctl calls for vap creation, ifup and ifdown, fix available txpower display
Diffstat (limited to 'contrib/package/iwinfo/src/include')
-rw-r--r-- | contrib/package/iwinfo/src/include/madwifi.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/package/iwinfo/src/include/madwifi.h b/contrib/package/iwinfo/src/include/madwifi.h index ff90b22510..fe4b3e62af 100644 --- a/contrib/package/iwinfo/src/include/madwifi.h +++ b/contrib/package/iwinfo/src/include/madwifi.h @@ -55,6 +55,27 @@ #define IEEE80211_IOCTL_GETCHANLIST (SIOCIWFIRSTPRIV+7) #define IEEE80211_IOCTL_GETCHANINFO (SIOCIWFIRSTPRIV+13) +#define SIOC80211IFCREATE (SIOCDEVPRIVATE+7) +#define SIOC80211IFDESTROY (SIOCDEVPRIVATE+8) + +#define IEEE80211_CLONE_BSSID 0x0001 /* allocate unique mac/bssid */ +#define IEEE80211_NO_STABEACONS 0x0002 /* Do not setup the station beacon timers */ + +struct ieee80211_clone_params { + char icp_name[IFNAMSIZ]; /* device name */ + u_int16_t icp_opmode; /* operating mode */ + u_int16_t icp_flags; /* see below */ +}; + +enum ieee80211_opmode { + IEEE80211_M_STA = 1, /* infrastructure station */ + IEEE80211_M_IBSS = 0, /* IBSS (adhoc) station */ + IEEE80211_M_AHDEMO = 3, /* Old lucent compatible adhoc demo */ + IEEE80211_M_HOSTAP = 6, /* Software Access Point */ + IEEE80211_M_MONITOR = 8, /* Monitor mode */ + IEEE80211_M_WDS = 2, /* WDS link */ +}; + enum { IEEE80211_PARAM_AUTHMODE = 3, /* authentication mode */ IEEE80211_PARAM_MCASTCIPHER = 5, /* multicast/default cipher */ |