---
name: "struct_ieee80211_vif"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/struct_ieee80211_vif"
---

# struct\_ieee80211\_vif(9)

per-interface data

## NAME

struct\_ieee80211\_vif - per-interface data

## SYNOPSIS

```
struct ieee80211_vif {
  enum nl80211_iftype type;
  struct ieee80211_bss_conf bss_conf;
  u8 addr[ETH_ALEN];
  bool p2p;
  bool csa_active;
  u8 cab_queue;
  u8 hw_queue[IEEE80211_NUM_ACS];
  struct ieee80211_chanctx_conf __rcu * chanctx_conf;
  u32 driver_flags;
#ifdef CONFIG_MAC80211_DEBUGFS
  struct dentry * debugfs_dir;
#endif
  u8 drv_priv[0];
};
```

## MEMBERS

type

type of this virtual interface

bss\_conf

BSS configuration for this interface, either our own or the BSS we're associated to

addr\[ETH\_ALEN\]

address of this interface

p2p

indicates whether this AP or STA interface is a p2p interface, i.e. a GO or p2p-sta respectively

csa\_active

marks whether a channel switch is going on. Internally it is write-protected by sdata\_lock and local-\>mtx so holding either is fine for read access.

cab\_queue

content-after-beacon (DTIM beacon really) queue, AP mode only

hw\_queue\[IEEE80211\_NUM\_ACS\]

hardware queue for each AC

chanctx\_conf

The channel context this interface is assigned to, or **NULL** when it is not assigned. This pointer is RCU-protected due to the TX path needing to access it; even though the netdev carrier will always be off when it is **NULL** there can still be races and packets could be processed after it switches back to **NULL**.

driver\_flags

flags/capabilities the driver has for this interface, these need to be set (or cleared) when the interface is added or, if supported by the driver, the interface type is changed at runtime, mac80211 will never touch this field

debugfs\_dir

debugfs dentry, can be used by drivers to create own per interface debug files. Note that it will be NULL for the virtual monitor interface (if that is requested.)

drv\_priv\[0\]

data area for driver use, will always be aligned to sizeof(void \*).

## DESCRIPTION

Data in this structure is continually present for driver use during the life of a virtual interface.

## AUTHOR

**Johannes Berg** \<johannes@sipsolutions.net\>

Author.

## COPYRIGHT
