Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045 #ifndef MAC80211_H
00046 #define MAC80211_H
00047
00048 #include "ath5k_linux_layer.h"
00049 #include "ieee80211.h"
00050 #include "ath5k_interface.h"
00051
00061 enum ieee80211_band {
00062 IEEE80211_BAND_2GHZ,
00063 IEEE80211_BAND_5GHZ,
00064
00065
00066 IEEE80211_NUM_BANDS
00067 };
00068
00079 struct ieee80211_channel {
00080 enum ieee80211_band band;
00081 u16 center_freq;
00082 u16 hw_value;
00083 };
00084
00106 enum ieee80211_rate_flags {
00107 IEEE80211_RATE_SHORT_PREAMBLE = 1<<0,
00108
00109
00110
00111
00112 };
00113
00128 struct ieee80211_rate {
00129 u32 flags;
00130 u16 bitrate;
00131 u16 hw_value, hw_value_short;
00132 };
00133
00134 struct ieee80211_tx_info {
00135 u8 band;
00136 s8 rate_idx;
00137 u8 count;
00138 bool use_short_preamble;
00139 bool wait_for_ack;
00140 };
00141
00163 struct ieee80211_rx_status {
00164 u64 mactime;
00165 enum ieee80211_band band;
00166 int freq;
00167 int signal;
00168 int noise;
00169 int qual;
00170 int antenna;
00171 int rate_idx;
00172 int flag;
00173 };
00174
00193 enum nl80211_iftype {
00194 NL80211_IFTYPE_UNSPECIFIED,
00195 NL80211_IFTYPE_ADHOC,
00196 NL80211_IFTYPE_STATION,
00197 NL80211_IFTYPE_AP,
00198 NL80211_IFTYPE_AP_VLAN,
00199 NL80211_IFTYPE_WDS,
00200 NL80211_IFTYPE_MONITOR,
00201 NL80211_IFTYPE_MESH_POINT,
00202
00203
00204 __NL80211_IFTYPE_AFTER_LAST,
00205 NL80211_IFTYPE_MAX = __NL80211_IFTYPE_AFTER_LAST - 1
00206 };
00207
00223 struct ieee80211_supported_band {
00224 struct ieee80211_channel *channels;
00225 struct ieee80211_rate *bitrates;
00226 enum ieee80211_band band;
00227 int n_channels;
00228 int n_bitrates;
00229 };
00230
00231 struct ieee80211_low_level_stats {
00232 unsigned int dot11ACKFailureCount;
00233 unsigned int dot11RTSFailureCount;
00234 unsigned int dot11FCSErrorCount;
00235 unsigned int dot11RTSSuccessCount;
00236 };
00237
00248 __le16 ath5k_generic_frame_duration(unsigned int mode,
00249 bool short_preamble,
00250 size_t frame_len,
00251 int rate);
00262 int ath5k_get_hdrlen_from_skb(const struct sk_buff *skb);
00263
00267 extern int ath5k_frequency_to_channel(int freq);
00268
00269
00270 #endif
00271