Lines Matching defs:mode
122 * this is only used for AR5212 and we know it supports G mode
131 * @mode: one of enum ath5k_driver_mode
135 * the hardware, based on current mode, for each rate. The rates which are
143 * quarter rate mode, we need to use another set of bitrates (that's why we
144 * need the mode parameter) but we don't handle these proprietary modes yet.
147 unsigned int mode)
241 static int ath5k_hw_set_power(struct ath5k_hw *ah, enum ath5k_power_mode mode,
249 switch (mode) {
386 u32 turbo, mode, clock, bus_flags;
390 mode = 0;
440 * a channel / mode set yet */
446 * Get channel mode flags
450 mode = AR5K_PHY_MODE_RAD_RF5112;
453 mode = AR5K_PHY_MODE_RAD_RF5111; /*Zero*/
458 mode |= AR5K_PHY_MODE_FREQ_2GHZ;
462 mode |= AR5K_PHY_MODE_MOD_CCK;
465 mode |= AR5K_PHY_MODE_MOD_OFDM;
467 mode |= AR5K_PHY_MODE_MOD_DYN;
470 "invalid radio modulation mode\n");
474 mode |= AR5K_PHY_MODE_FREQ_5GHZ;
482 mode |= AR5K_PHY_MODE_MOD_OFDM;
485 "invalid radio modulation mode\n");
489 ATH5K_ERR(ah->ah_sc, "invalid radio frequency mode\n");
497 /* ...enable Atheros turbo mode if requested */
511 /* ...set the PHY operating mode */
512 ath5k_hw_reg_write(ah, mode, AR5K_PHY_MODE);
865 u8 mode, freq, ee_mode;
873 mode = 0;
883 mode = AR5K_MODE_11A;
888 mode = AR5K_MODE_11G;
893 mode = AR5K_MODE_11B;
898 mode = AR5K_MODE_11A_TURBO;
905 "TurboG mode not available on 5211");
908 mode = AR5K_MODE_11G_TURBO;
915 "XR mode not available on 5211");
918 mode = AR5K_MODE_XR;
972 * settings and ack/cts rate mode */
994 ret = ath5k_hw_write_initvals(ah, mode, change_channel);
1030 ath5k_hw_write_rate_duration(ah, mode);
1035 ret = ath5k_hw_rfregs_init(ah, channel, mode);
1056 /*Enable/disable 802.11b mode on 5111
1059 if (mode == AR5K_MODE_11B)
1240 if (!(mode == AR5K_MODE_11B)) {
1256 /* Restore antenna mode */