AW: nl80211_register_action_frame function parameter

Jouni Malinen j at w1.fi
Sat Apr 25 09:13:04 EDT 2015


On Mon, Apr 20, 2015 at 11:07:17AM +0000, volker.obhof.w at sew-eurodrive.de wrote:
> I read some parts in 802.11-2012.pdf specification. I found out that in the function "WNM - BSS Transition Management Request" in the snippet below "\x0a\x07" the HEX-byte representation of "\x07" is the action field value from WNM action field (section 8.5.14.1 in 802.11-2012.pdf specification) but I have no idea why I need the suffix HEX-byte "\x0a"?

This is the "const u8 *match" parameter to
nl80211_register_action_frame(), i.e., the value to use with
NL80211_ATTR_FRAME_MATCH. In other words, this is the first N bytes of
the Action frame payload against which the match is done. 0x0a is the
Category field (10 = WNM) and 0x07 is the Action field (WNM Action field
is this specific example) (7 = BSS Transition Management Request).

-- 
Jouni Malinen                                            PGP id EFC895FA


More information about the HostAP mailing list