base.c (e5b046d86fac609f636d127a38de94a175c7e83b) base.c (a0b907ee2a71052fefdf6151764095f3f97b3275)
1/*-
2 * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
3 * Copyright (c) 2004-2005 Atheros Communications, Inc.
4 * Copyright (c) 2006 Devicescape Software, Inc.
5 * Copyright (c) 2007 Jiri Slaby <jirislaby@gmail.com>
6 * Copyright (c) 2007 Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
7 *
8 * All rights reserved.

--- 73 unchanged lines hidden (view full) ---

82static int ath5k_reset(struct ath5k_softc *sc, struct ieee80211_channel *chan,
83 bool skip_pcu);
84static int ath5k_beacon_update(struct ieee80211_hw *hw,
85 struct ieee80211_vif *vif);
86static void ath5k_beacon_update_timers(struct ath5k_softc *sc, u64 bc_tsf);
87
88/* Known SREVs */
89static const struct ath5k_srev_name srev_names[] = {
1/*-
2 * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
3 * Copyright (c) 2004-2005 Atheros Communications, Inc.
4 * Copyright (c) 2006 Devicescape Software, Inc.
5 * Copyright (c) 2007 Jiri Slaby <jirislaby@gmail.com>
6 * Copyright (c) 2007 Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
7 *
8 * All rights reserved.

--- 73 unchanged lines hidden (view full) ---

82static int ath5k_reset(struct ath5k_softc *sc, struct ieee80211_channel *chan,
83 bool skip_pcu);
84static int ath5k_beacon_update(struct ieee80211_hw *hw,
85 struct ieee80211_vif *vif);
86static void ath5k_beacon_update_timers(struct ath5k_softc *sc, u64 bc_tsf);
87
88/* Known SREVs */
89static const struct ath5k_srev_name srev_names[] = {
90#ifdef CONFIG_ATHEROS_AR231X
91 { "5312", AR5K_VERSION_MAC, AR5K_SREV_AR5312_R2 },
92 { "5312", AR5K_VERSION_MAC, AR5K_SREV_AR5312_R7 },
93 { "2313", AR5K_VERSION_MAC, AR5K_SREV_AR2313_R8 },
94 { "2315", AR5K_VERSION_MAC, AR5K_SREV_AR2315_R6 },
95 { "2315", AR5K_VERSION_MAC, AR5K_SREV_AR2315_R7 },
96 { "2317", AR5K_VERSION_MAC, AR5K_SREV_AR2317_R1 },
97 { "2317", AR5K_VERSION_MAC, AR5K_SREV_AR2317_R2 },
98#else
90 { "5210", AR5K_VERSION_MAC, AR5K_SREV_AR5210 },
91 { "5311", AR5K_VERSION_MAC, AR5K_SREV_AR5311 },
92 { "5311A", AR5K_VERSION_MAC, AR5K_SREV_AR5311A },
93 { "5311B", AR5K_VERSION_MAC, AR5K_SREV_AR5311B },
94 { "5211", AR5K_VERSION_MAC, AR5K_SREV_AR5211 },
95 { "5212", AR5K_VERSION_MAC, AR5K_SREV_AR5212 },
96 { "5213", AR5K_VERSION_MAC, AR5K_SREV_AR5213 },
97 { "5213A", AR5K_VERSION_MAC, AR5K_SREV_AR5213A },
98 { "2413", AR5K_VERSION_MAC, AR5K_SREV_AR2413 },
99 { "2414", AR5K_VERSION_MAC, AR5K_SREV_AR2414 },
100 { "5424", AR5K_VERSION_MAC, AR5K_SREV_AR5424 },
101 { "5413", AR5K_VERSION_MAC, AR5K_SREV_AR5413 },
102 { "5414", AR5K_VERSION_MAC, AR5K_SREV_AR5414 },
103 { "2415", AR5K_VERSION_MAC, AR5K_SREV_AR2415 },
104 { "5416", AR5K_VERSION_MAC, AR5K_SREV_AR5416 },
105 { "5418", AR5K_VERSION_MAC, AR5K_SREV_AR5418 },
106 { "2425", AR5K_VERSION_MAC, AR5K_SREV_AR2425 },
107 { "2417", AR5K_VERSION_MAC, AR5K_SREV_AR2417 },
99 { "5210", AR5K_VERSION_MAC, AR5K_SREV_AR5210 },
100 { "5311", AR5K_VERSION_MAC, AR5K_SREV_AR5311 },
101 { "5311A", AR5K_VERSION_MAC, AR5K_SREV_AR5311A },
102 { "5311B", AR5K_VERSION_MAC, AR5K_SREV_AR5311B },
103 { "5211", AR5K_VERSION_MAC, AR5K_SREV_AR5211 },
104 { "5212", AR5K_VERSION_MAC, AR5K_SREV_AR5212 },
105 { "5213", AR5K_VERSION_MAC, AR5K_SREV_AR5213 },
106 { "5213A", AR5K_VERSION_MAC, AR5K_SREV_AR5213A },
107 { "2413", AR5K_VERSION_MAC, AR5K_SREV_AR2413 },
108 { "2414", AR5K_VERSION_MAC, AR5K_SREV_AR2414 },
109 { "5424", AR5K_VERSION_MAC, AR5K_SREV_AR5424 },
110 { "5413", AR5K_VERSION_MAC, AR5K_SREV_AR5413 },
111 { "5414", AR5K_VERSION_MAC, AR5K_SREV_AR5414 },
112 { "2415", AR5K_VERSION_MAC, AR5K_SREV_AR2415 },
113 { "5416", AR5K_VERSION_MAC, AR5K_SREV_AR5416 },
114 { "5418", AR5K_VERSION_MAC, AR5K_SREV_AR5418 },
115 { "2425", AR5K_VERSION_MAC, AR5K_SREV_AR2425 },
116 { "2417", AR5K_VERSION_MAC, AR5K_SREV_AR2417 },
117#endif
108 { "xxxxx", AR5K_VERSION_MAC, AR5K_SREV_UNKNOWN },
109 { "5110", AR5K_VERSION_RAD, AR5K_SREV_RAD_5110 },
110 { "5111", AR5K_VERSION_RAD, AR5K_SREV_RAD_5111 },
111 { "5111A", AR5K_VERSION_RAD, AR5K_SREV_RAD_5111A },
112 { "2111", AR5K_VERSION_RAD, AR5K_SREV_RAD_2111 },
113 { "5112", AR5K_VERSION_RAD, AR5K_SREV_RAD_5112 },
114 { "5112A", AR5K_VERSION_RAD, AR5K_SREV_RAD_5112A },
115 { "5112B", AR5K_VERSION_RAD, AR5K_SREV_RAD_5112B },
116 { "2112", AR5K_VERSION_RAD, AR5K_SREV_RAD_2112 },
117 { "2112A", AR5K_VERSION_RAD, AR5K_SREV_RAD_2112A },
118 { "2112B", AR5K_VERSION_RAD, AR5K_SREV_RAD_2112B },
119 { "2413", AR5K_VERSION_RAD, AR5K_SREV_RAD_2413 },
120 { "5413", AR5K_VERSION_RAD, AR5K_SREV_RAD_5413 },
118 { "xxxxx", AR5K_VERSION_MAC, AR5K_SREV_UNKNOWN },
119 { "5110", AR5K_VERSION_RAD, AR5K_SREV_RAD_5110 },
120 { "5111", AR5K_VERSION_RAD, AR5K_SREV_RAD_5111 },
121 { "5111A", AR5K_VERSION_RAD, AR5K_SREV_RAD_5111A },
122 { "2111", AR5K_VERSION_RAD, AR5K_SREV_RAD_2111 },
123 { "5112", AR5K_VERSION_RAD, AR5K_SREV_RAD_5112 },
124 { "5112A", AR5K_VERSION_RAD, AR5K_SREV_RAD_5112A },
125 { "5112B", AR5K_VERSION_RAD, AR5K_SREV_RAD_5112B },
126 { "2112", AR5K_VERSION_RAD, AR5K_SREV_RAD_2112 },
127 { "2112A", AR5K_VERSION_RAD, AR5K_SREV_RAD_2112A },
128 { "2112B", AR5K_VERSION_RAD, AR5K_SREV_RAD_2112B },
129 { "2413", AR5K_VERSION_RAD, AR5K_SREV_RAD_2413 },
130 { "5413", AR5K_VERSION_RAD, AR5K_SREV_RAD_5413 },
121 { "2316", AR5K_VERSION_RAD, AR5K_SREV_RAD_2316 },
122 { "2317", AR5K_VERSION_RAD, AR5K_SREV_RAD_2317 },
123 { "5424", AR5K_VERSION_RAD, AR5K_SREV_RAD_5424 },
124 { "5133", AR5K_VERSION_RAD, AR5K_SREV_RAD_5133 },
131 { "5424", AR5K_VERSION_RAD, AR5K_SREV_RAD_5424 },
132 { "5133", AR5K_VERSION_RAD, AR5K_SREV_RAD_5133 },
133#ifdef CONFIG_ATHEROS_AR231X
134 { "2316", AR5K_VERSION_RAD, AR5K_SREV_RAD_2316 },
135 { "2317", AR5K_VERSION_RAD, AR5K_SREV_RAD_2317 },
136#endif
125 { "xxxxx", AR5K_VERSION_RAD, AR5K_SREV_UNKNOWN },
126};
127
128static const struct ieee80211_rate ath5k_rates[] = {
129 { .bitrate = 10,
130 .hw_value = ATH5K_RATE_CODE_1M, },
131 { .bitrate = 20,
132 .hw_value = ATH5K_RATE_CODE_2M,

--- 3445 unchanged lines hidden ---
137 { "xxxxx", AR5K_VERSION_RAD, AR5K_SREV_UNKNOWN },
138};
139
140static const struct ieee80211_rate ath5k_rates[] = {
141 { .bitrate = 10,
142 .hw_value = ATH5K_RATE_CODE_1M, },
143 { .bitrate = 20,
144 .hw_value = ATH5K_RATE_CODE_2M,

--- 3445 unchanged lines hidden ---