#include <net80211.h>
Public Types | |
| enum | { NET80211_HW_RX_HAS_FCS = (1 << 1), NET80211_HW_NO_SHORT_PREAMBLE = (1 << 2), NET80211_HW_NO_SHORT_SLOT = (1 << 3) } |
| A set of flags indicating peculiarities of this device. More... | |
| enum | { NET80211_SIGNAL_NONE = 0, NET80211_SIGNAL_ARBITRARY, NET80211_SIGNAL_DB, NET80211_SIGNAL_DBM } |
| Signal strength information that can be provided by the device. More... | |
Data Fields | |
| u8 | hwaddr [ETH_ALEN] |
| Default hardware MAC address. | |
| int | modes |
| A bitwise OR of the 802.11x modes supported by this device. | |
| int | bands |
| A bitwise OR of the bands on which this device can communicate. | |
| enum net80211_hw_info:: { ... } | flags |
| A set of flags indicating peculiarities of this device. | |
| enum net80211_hw_info:: { ... } | signal_type |
| Signal strength information that can be provided by the device. | |
| unsigned | signal_max |
| Maximum signal in arbitrary cases. | |
| struct net80211_channel | channels [NET80211_MAX_CHANNELS] |
| List of RF channels supported by the card. | |
| int | nr_channels |
| Number of supported channels. | |
| u16 | rates [NET80211_NR_BANDS][NET80211_MAX_RATES] |
| List of transmission rates supported by the card, indexed by band. | |
| int | nr_rates [NET80211_NR_BANDS] |
| Number of supported rates, indexed by band. | |
| unsigned | channel_change_time |
| Estimate of the time required to change channels, in microseconds. | |
In its probe callback, an 802.11 driver must read hardware registers to determine the appropriate contents of this structure, fill it, and pass it to net80211_register() so that the 802.11 layer knows how to treat the hardware and what to advertise as supported to access points.
Definition at line 436 of file net80211.h.
| anonymous enum |
A set of flags indicating peculiarities of this device.
Definition at line 456 of file net80211.h.
00456 { 00457 /** Received frames include a frame check sequence. */ 00458 NET80211_HW_RX_HAS_FCS = (1 << 1), 00459 00460 /** Hardware doesn't support 2.4GHz short preambles 00461 * 00462 * This is only relevant for 802.11b operation above 00463 * 2Mbps. All 802.11g devices support short preambles. 00464 */ 00465 NET80211_HW_NO_SHORT_PREAMBLE = (1 << 2), 00466 00467 /** Hardware doesn't support 802.11g short slot operation */ 00468 NET80211_HW_NO_SHORT_SLOT = (1 << 3), 00469 } flags;
| anonymous enum |
Signal strength information that can be provided by the device.
Signal strength is passed to net80211_rx(), primarily to allow determination of the closest access point for a multi-AP network. The units are provided for completeness of status displays.
Definition at line 478 of file net80211.h.
00478 { 00479 /** No signal strength information supported */ 00480 NET80211_SIGNAL_NONE = 0, 00481 /** Signal strength in arbitrary units */ 00482 NET80211_SIGNAL_ARBITRARY, 00483 /** Signal strength in decibels relative to arbitrary base */ 00484 NET80211_SIGNAL_DB, 00485 /** Signal strength in decibels relative to 1mW */ 00486 NET80211_SIGNAL_DBM, 00487 } signal_type;
| u8 net80211_hw_info::hwaddr[ETH_ALEN] |
Default hardware MAC address.
The user may change this by setting the netX/mac setting before the driver's open function is called; in that case the driver must set the hardware MAC address to the address contained in the wrapping net_device's ll_addr field, or if that is impossible, set that ll_addr field back to the unchangeable hardware MAC address.
Definition at line 447 of file net80211.h.
Referenced by ath5k_attach(), net80211_register(), and rtl818x_probe().
A bitwise OR of the 802.11x modes supported by this device.
Definition at line 450 of file net80211.h.
Referenced by ath5k_setup_bands(), and rtl818x_probe().
A bitwise OR of the bands on which this device can communicate.
Definition at line 453 of file net80211.h.
Referenced by ath5k_setup_bands(), iwlist(), net80211_step_associate(), and rtl818x_probe().
| enum { ... } net80211_hw_info::flags |
A set of flags indicating peculiarities of this device.
Referenced by ath5k_probe(), net80211_process_ie(), net80211_rx(), net80211_send_assoc(), and rtl818x_probe().
| enum { ... } net80211_hw_info::signal_type |
Signal strength information that can be provided by the device.
Signal strength is passed to net80211_rx(), primarily to allow determination of the closest access point for a multi-AP network. The units are provided for completeness of status displays.
Referenced by ath5k_probe(), iwstat(), and rtl818x_probe().
| unsigned net80211_hw_info::signal_max |
Maximum signal in arbitrary cases.
If signal_type is NET80211_SIGNAL_ARBITRARY or NET80211_SIGNAL_DB, the driver should report it on a scale from 0 to signal_max.
Definition at line 495 of file net80211.h.
Referenced by ath5k_probe(), iwstat(), and rtl818x_probe().
struct net80211_channel net80211_hw_info::channels[NET80211_MAX_CHANNELS] [read] |
List of RF channels supported by the card.
Definition at line 498 of file net80211.h.
Referenced by ath5k_setup_bands(), net80211_filter_hw_channels(), and net80211_register().
Number of supported channels.
Definition at line 501 of file net80211.h.
Referenced by ath5k_setup_bands(), and net80211_filter_hw_channels().
| u16 net80211_hw_info::rates[NET80211_NR_BANDS][NET80211_MAX_RATES] |
List of transmission rates supported by the card, indexed by band.
Rates should be in 100kbps increments (e.g. 11 Mbps would be represented as the number 110).
Definition at line 508 of file net80211.h.
Referenced by ath5k_hw_write_rate_duration(), ath5k_setup_bands(), net80211_prepare_probe(), net80211_process_ie(), and rtl818x_probe().
| int net80211_hw_info::nr_rates[NET80211_NR_BANDS] |
Number of supported rates, indexed by band.
Definition at line 511 of file net80211.h.
Referenced by ath5k_hw_write_rate_duration(), ath5k_setup_bands(), net80211_process_ie(), and rtl818x_probe().
Estimate of the time required to change channels, in microseconds.
If this is not known, a guess on the order of a few milliseconds (value of 1000-5000) is reasonable.
Definition at line 518 of file net80211.h.
Referenced by ath5k_probe(), net80211_probe_step(), and rtl818x_probe().
1.5.7.1