File: ieee80211.c

package info (click to toggle)
hcxtools 7.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,152 kB
  • sloc: ansic: 21,223; python: 144; makefile: 101; sh: 99
file content (34 lines) | stat: -rw-r--r-- 502 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include "ieee80211.h"

/*===========================================================================*/
int getkeyinfo(uint16_t ki)
{
if(ki & WPA_KEY_INFO_ACK)
	{
	if(ki & WPA_KEY_INFO_INSTALL)
		{
		/* handshake 3 */
		return 3;
		}
	else
		{
		/* handshake 1 */
		return 1;
		}
	}
else
	{
	if(ki & WPA_KEY_INFO_SECURE)
		{
		/* handshake 4 */
		return 4;
		}
	else
		{
		/* handshake 2 */
		return 2;
		}
	}
return 0;
}
/*===========================================================================*/