AW: nl80211_register_action_frame function parameter

volker.obhof.w at sew-eurodrive.de volker.obhof.w
Mon Apr 20 04:07:17 PDT 2015


The third parameter is the number of bytes to be compared not the second.

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"?

Von: sunder [mailto:sunder_k at hotmail.com]
Gesendet: Montag, 20. April 2015 12:20
An: Obhof, Volker (FK-FN); hostap at lists.shmoo.com
Betreff: RE: nl80211_register_action_frame function parameter

Number of bytes to be compared.
Best Regards,
k.sunder

________________________________
From: volker.obhof.w at sew-eurodrive.de<mailto:volker.obhof.w at sew-eurodrive.de>
To: hostap at lists.shmoo.com<mailto:hostap at lists.shmoo.com>
Subject: nl80211_register_action_frame function parameter
Date: Mon, 20 Apr 2015 09:53:20 +0000
In file driver_nl80211.c there are some function calls near line 4524 to register action frame.

I think it can be used to send or receive action frame.



Snippet:

/* FT Action frames */
if (nl80211_register_action_frame(bss, (u8 *) "\x06", 1) < 0)
            ret = -1;
else
            drv->capa.key_mgmt |= WPA_DRIVER_CAPA_KEY_MGMT_FT |
                        WPA_DRIVER_CAPA_KEY_MGMT_FT_PSK;

/* WNM - BSS Transition Management Request */
if (nl80211_register_action_frame(bss, (u8 *) "\x0a\x07", 2) < 0)
            ret = -1;
/* WNM-Sleep Mode Response */
if (nl80211_register_action_frame(bss, (u8 *) "\x0a\x11", 2) < 0)
            ret = -1;


But what is the second parameter in nl80211_register_action_frame() function?

I thought it could be the action frame ID but I don't really know it.

________________________________


SEW-EURODRIVE GmbH & Co KG
Kommanditgesellschaft, Sitz: Bruchsal, RG Mannheim HRA 230970
Komplement?rin: SEW-EURODRIVE Verwaltungs-GmbH, Sitz: Bruchsal, RG Mannheim HRB 230207

Gesellschafter: J?rgen Blickle, Rainer Blickle
Gesch?ftsf?hrer: J?rgen Blickle (Vorsitzender), Johann Soder, Dr. J?rgen Zanghellini

_______________________________________________ HostAP mailing list HostAP at lists.shmoo.com<mailto:HostAP at lists.shmoo.com> http://lists.shmoo.com/mailman/listinfo/hostap

________________________________


SEW-EURODRIVE GmbH & Co KG
Kommanditgesellschaft, Sitz: Bruchsal, RG Mannheim HRA 230970
Komplement?rin: SEW-EURODRIVE Verwaltungs-GmbH, Sitz: Bruchsal, RG Mannheim HRB 230207

Gesellschafter: J?rgen Blickle, Rainer Blickle
Gesch?ftsf?hrer: J?rgen Blickle (Vorsitzender), Johann Soder, Dr. J?rgen Zanghellini
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20150420/ca593b60/attachment.htm>



More information about the Hostap mailing list