summaryrefslogtreecommitdiff
path: root/vlan.h
blob: b58d1a26f20e224d0a6a2960f140118ccf643bf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef VLAN_H
#define VLAN_H

#include <stdbool.h>
#include <inttypes.h>

static inline uint16_t vlan_tci2prio(uint16_t tci)
{
	return (tci & 0xe000) >> 13;
}

static inline uint16_t vlan_tci2cfi(uint16_t tci)
{
	return (tci & 0x1000) >> 12;
}

static inline uint16_t vlan_tci2vid(uint16_t tci)
{
	return tci & 0x0fff;
}

#endif
urora.org>2016-08-29 21:39:04 +0300 commitbb87f02b7e4ccdb614a83cbf840524de81e9b321 (patch) tree9906c75e8b80913dec4a216029ab9965566a9871 parentb64abcb7dae6060c67ab0e548da3ef923c49641d (diff)parent7711aaf08ad3fc4d0e937eec1de0a63620444ce7 (diff)
Merge ath-current from ath.git
ath.git fixes for 4.8. Major changes: ath9k * fix regression in client mode beacon configuration * fix a station pointer which resulted in spurious crashes
Diffstat