![Atheros AP222A User Manual Download Page 45](http://html1.mh-extra.com/html/atheros/ap222a/ap222a_user-manual_2998481045.webp)
COMPANY CONFIDENTIAL
44
setfilter
#iwpriv ath
N
setfilter
filter
This command allows an application to specify which management frames it wants to receive from the VAP.
This will cause the VAP to forward the indicated frames to the networking stack. The filter is a set of bits with
the following values:
Bit
Frame type to forward
0x01
Beacon
0x02
Probe Request
0x04
Probe Response
0x08
Association Request
0x10
Association Response
0x20
Authentication
0x40
Deauthentication
0x80
Disassociation
0xff
ALL
This command is normally used by host_apd for configuring the VAP. It does NOT have a corresponding get
command.
#iwpriv ath0 setfilter 0x24
setiebuf
getiebuf
These commands are used by an application to set/get application Information Elements into/from various
frame types. The ieee80211req_getset_appiebuf structure is passed as an argument to the ioctl. There is no
command line equivalent for these commands, but the command does show up as a valid iwpriv command. The
definition of the required data structure is as follows:
struct
ieee80211req_getset_appiebuf
{
u_int32_t app_frmtype;
/*management frame type for which buffer is added*/
u_int32_t app_buflen;
/*application supplied buffer length */
u_int8_t app_buf[];
}
;
setkey
delkey
The host_apd application is required to do periodic rekeying of the various connections. These commands
allow for management of the key cache. The setkey command receives the ieee80211req_key structure as an
argument. This structure is defined as follows:
struct
ieee80211req_key
{
u_int8_t ik_type;
/* key/cipher type */
u_int8_t ik_pad;
u_int16_t ik_keyix;
/* key index */
u_int8_t ik_keylen;
/* key length in bytes */
u_int8_t ik_flags;
u_int8_t ik_macaddr[IEEE80211_ADDR_LEN];
u_int64_t ik_keyrsc;
/* key receive sequence counter */
u_int64_t ik_keytsc;
/* key transmit sequence counter */
u_int8_t ik_keydata[IEEE80211_KEYBUF_SIZE
+
IEEE80211_MICBUF_SIZE];
}
;
The delkey command will pass the structure ieee80211req_del_key, as follows:
struct
ieee80211req_del_key
{
u_int8_t idk_keyix;
/* key index */
u_int8_t idk_macaddr[IEEE80211_ADDR_LEN];
}
;
Neither of these commands have any corresponding command line equivalents.