carta
struct_ieee80211_if_init_conf(9)

struct_ieee80211_if_init_conf9

Initial configuration of an interface

Usage

enum nl80211_iftype type;

struct ieee80211_vif * vif;

void * mac_addr;

Members

type

one of enum nl80211_iftype constants. Determines the type of added/removed interface.

vif

pointer to a driver-use per-interface structure. The pointer itself is also used for various functions including ieee80211_beacon_get and ieee80211_get_buffered_bc.

mac_addr

pointer to MAC address of the interface. This pointer is valid until the interface is removed (i.e. it cannot be used after remove_interface callback was called for this interface).

Overview

This structure is used in add_interface and remove_interface callbacks of struct ieee80211_hw.

When you allow multiple interfaces to be added to your PHY, take care that the hardware can actually handle multiple MAC addresses. However, also take care that when there's no interface left with mac_addr != NULL you remove the MAC address from the device to avoid acknowledging packets in pure monitor mode.

History

  • Debian 6.0 (Squeeze): the text shown here
  • Debian 5.0 (Lenny)

Author

Johannes Berg <[email protected]>

Author.

From linux-manual-2.6.32 2.6.32-48squeeze6 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.