---
name: "ieee80211_ioctl"
section: "9"
platform: "linux"
package: "freebsd-manpages"
version: "6.0-5"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/ieee80211_ioctl"
---

# ieee80211\_ioctl(9)

802\.11 interface ioctl commands

## NAME

**ieee80211\_cfgget**, **ieee80211\_cfgset**, **ieee80211\_ioctl** – 802.11 interface ioctl commands

## SYNOPSIS

**#include \<net80211/ieee80211\_var.h\>**

**#include \<net80211/ieee80211\_proto.h\>**

**#include \<net80211/ieee80211\_ioctl.h\>**

*int*\

**ieee80211\_cfgget**(*struct ifnet \*ifp*, *u\_long cmd*, *caddr\_t data*);

*int*\

**ieee80211\_cfgset**(*struct ifnet \*ifp*, *u\_long cmd*, *caddr\_t data*);

*int*\

**ieee80211\_ioctl**(*struct ifnet \*ifp*, *u\_long cmd*, *caddr\_t data*);

## DESCRIPTION

These functions are typically invoked by drivers in response to requests for information or to change settings from the userland.

The **ieee80211\_cfgget**() and **ieee80211\_cfgset**() functions implement a legacy interface for getting and setting 802.11 interface attributes respectively. The interface is compatible with the RIDs implemented by the legacy owi(4) driver and used by the wicontrol(8) utility.

The **ieee80211\_ioctl**() function provides a default implementation of the SIOCS80211 and SIOCG80211 ifioctls commands for 802.11 drivers. The call signature is identical to that of the *if\_ioctl* member found in *struct* *ifnet*, however, many drivers store attributes such as IEEE80211\_IOC\_STATIONNAME in the driver's private soft state structure, so driver writers may prefer to use this as the catch-all in a switch statement to avoid code duplication.

## SEE ALSO

owi(4), [ifconfig(8)](/ifconfig/8.md), wicontrol(8), [ieee80211(9)](/ieee80211/9.md), [ifnet(9)](/ifnet/9.md)

## HISTORY

The **ieee80211** series of functions first appeared in NetBSD 1.5, and were later ported to FreeBSD 4.6.

## AUTHORS

This manual page was written by Bruce M. Simpson ⟨bms@FreeBSD.org⟩ and Darron Broad ⟨darron@kewl.org⟩.
