hw_features.c File Reference

hostapd / Hardware feature query and different modes More...

#include "includes.h"
#include "hostapd.h"
#include "hw_features.h"
#include "driver.h"
#include "config.h"
#include "ieee802_11.h"
#include "eloop.h"

Include dependency graph for hw_features.c:

Go to the source code of this file.

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_select_hw_mode_start (struct hostapd_iface *iface, hostapd_iface_cb cb)
 Start selection of the hardware mode.
int hostapd_select_hw_mode_stop (struct hostapd_iface *iface)
 Stops automatic channel selection.
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
Copyright 2002-2003, Instant802 Networks, Inc. Copyright 2005-2006, Devicescape Software, Inc.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Alternatively, this software may be distributed under the terms of BSD license.

See README and COPYING for more details.

Definition in file hw_features.c.


Function Documentation

int hostapd_select_hw_mode_start struct hostapd_iface iface,
hostapd_iface_cb  cb
 

Start selection of the hardware mode.

Parameters:
iface Pointer to interface data.
cb The function to callback when done.
Returns:
0 if it starts successfully; cb will be called when done. -1 on failure; cb will not be called.
Sets up the hardware mode, channel, rates, and passive scanning based on the configuration.

Definition at line 358 of file hw_features.c.

Here is the call graph for this function:

int hostapd_select_hw_mode_stop struct hostapd_iface iface  ) 
 

Stops automatic channel selection.

Parameters:
iface Pointer to interface data.
Returns:
0 if successfully stopped; -1 on failure (i.e., was not in progress)

Definition at line 383 of file hw_features.c.


Generated on Sun Dec 31 13:44:58 2006 for hostapd by  doxygen 1.4.2