wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
hw_features.c File Reference

hostapd / Hardware feature query and different modes Copyright 2005-2006, Devicescape Software, Inc. Copyright (c) 2008-2012, Jouni Malinen j@w1..nosp@m.fi More...

#include "utils/includes.h"
#include "utils/common.h"
#include "utils/eloop.h"
#include "common/ieee802_11_defs.h"
#include "common/ieee802_11_common.h"
#include "common/wpa_ctrl.h"
#include "common/hw_features_common.h"
#include "hostapd.h"
#include "ap_config.h"
#include "ap_drv_ops.h"
#include "acs.h"
#include "ieee802_11.h"
#include "beacon.h"
#include "hw_features.h"

Functions

void hostapd_free_hw_features (struct hostapd_hw_modes *hw_features, size_t num_hw_features)
 
int hostapd_get_hw_features (struct hostapd_iface *iface)
 
int hostapd_prepare_rates (struct hostapd_iface *iface, struct hostapd_hw_modes *mode)
 
int hostapd_check_ht_capab (struct hostapd_iface *iface)
 
int hostapd_acs_completed (struct hostapd_iface *iface, int err)
 
int hostapd_select_hw_mode (struct hostapd_iface *iface)
 Select the hardware mode. More...
 
const char * hostapd_hw_mode_txt (int mode)
 
int hostapd_hw_get_freq (struct hostapd_data *hapd, int chan)
 
int hostapd_hw_get_channel (struct hostapd_data *hapd, int freq)
 

Detailed Description

hostapd / Hardware feature query and different modes Copyright 2005-2006, Devicescape Software, Inc. Copyright (c) 2008-2012, Jouni Malinen j@w1..nosp@m.fi

Function Documentation

int hostapd_select_hw_mode ( struct hostapd_iface iface)

Select the hardware mode.

Parameters
ifacePointer to interface data.
Returns
0 on success, < 0 on failure

Sets up the hardware mode, channel, rates, and passive scanning based on the configuration.