aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/565-ath9k-add-fast_div_bias-configuration-for-diversity-.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-06-24 19:53:13 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-06-24 19:53:13 +0000
commitc7744447a5312258fb08d8191976d35170ed8faa (patch)
treee56b59dcf552f1cae375d9d5b33716c9dc090e75 /package/mac80211/patches/565-ath9k-add-fast_div_bias-configuration-for-diversity-.patch
parente2d3555a9110e82b9161ebe2643fc0badd4ec565 (diff)
downloadupstream-c7744447a5312258fb08d8191976d35170ed8faa.tar.gz
upstream-c7744447a5312258fb08d8191976d35170ed8faa.tar.bz2
upstream-c7744447a5312258fb08d8191976d35170ed8faa.zip
mac80211: update to wireless-testing 2011-06-22
SVN-Revision: 27275
Diffstat (limited to 'package/mac80211/patches/565-ath9k-add-fast_div_bias-configuration-for-diversity-.patch')
-rw-r--r--package/mac80211/patches/565-ath9k-add-fast_div_bias-configuration-for-diversity-.patch92
1 files changed, 0 insertions, 92 deletions
diff --git a/package/mac80211/patches/565-ath9k-add-fast_div_bias-configuration-for-diversity-.patch b/package/mac80211/patches/565-ath9k-add-fast_div_bias-configuration-for-diversity-.patch
deleted file mode 100644
index f3853239aa..0000000000
--- a/package/mac80211/patches/565-ath9k-add-fast_div_bias-configuration-for-diversity-.patch
+++ /dev/null
@@ -1,92 +0,0 @@
---- a/drivers/net/wireless/ath/ath9k/recv.c
-+++ b/drivers/net/wireless/ath/ath9k/recv.c
-@@ -1366,6 +1366,89 @@ static void ath_ant_div_conf_fast_divbia
- default:
- break;
- }
-+ } else if (ant_conf->div_group == 1) {
-+ /* Adjust the fast_div_bias based on main and alt_lna_conf */
-+ switch ((ant_conf->main_lna_conf << 4) |
-+ ant_conf->alt_lna_conf) {
-+ case 0x01: /* A-B LNA2 */
-+ ant_conf->fast_div_bias = 0x1;
-+ ant_conf->main_gaintb = 0;
-+ ant_conf->alt_gaintb = 0;
-+ break;
-+ case 0x02: /* A-B LNA1 */
-+ ant_conf->fast_div_bias = 0x1;
-+ ant_conf->main_gaintb = 0;
-+ ant_conf->alt_gaintb = 0;
-+ break;
-+ case 0x03: /* A-B A+B */
-+ ant_conf->fast_div_bias = 0x1;
-+ ant_conf->main_gaintb = 0;
-+ ant_conf->alt_gaintb = 0;
-+ break;
-+ case 0x10: /* LNA2 A-B */
-+ if (!(antcomb->scan) &&
-+ (alt_ratio > ATH_ANT_DIV_COMB_ALT_ANT_RATIO))
-+ ant_conf->fast_div_bias = 0x3f;
-+ else
-+ ant_conf->fast_div_bias = 0x1;
-+ ant_conf->main_gaintb = 0;
-+ ant_conf->alt_gaintb = 0;
-+ break;
-+ case 0x12: /* LNA2 LNA1 */
-+ ant_conf->fast_div_bias = 0x1;
-+ ant_conf->main_gaintb = 0;
-+ ant_conf->alt_gaintb = 0;
-+ break;
-+ case 0x13: /* LNA2 A+B */
-+ if (!(antcomb->scan) &&
-+ (alt_ratio > ATH_ANT_DIV_COMB_ALT_ANT_RATIO))
-+ ant_conf->fast_div_bias = 0x3f;
-+ else
-+ ant_conf->fast_div_bias = 0x1;
-+ ant_conf->main_gaintb = 0;
-+ ant_conf->alt_gaintb = 0;
-+ break;
-+ case 0x20: /* LNA1 A-B */
-+ if (!(antcomb->scan) &&
-+ (alt_ratio > ATH_ANT_DIV_COMB_ALT_ANT_RATIO))
-+ ant_conf->fast_div_bias = 0x3f;
-+ else
-+ ant_conf->fast_div_bias = 0x1;
-+ ant_conf->main_gaintb = 0;
-+ ant_conf->alt_gaintb = 0;
-+ break;
-+ case 0x21: /* LNA1 LNA2 */
-+ ant_conf->fast_div_bias = 0x1;
-+ ant_conf->main_gaintb = 0;
-+ ant_conf->alt_gaintb = 0;
-+ break;
-+ case 0x23: /* LNA1 A+B */
-+ if (!(antcomb->scan) &&
-+ (alt_ratio > ATH_ANT_DIV_COMB_ALT_ANT_RATIO))
-+ ant_conf->fast_div_bias = 0x3f;
-+ else
-+ ant_conf->fast_div_bias = 0x1;
-+ ant_conf->main_gaintb = 0;
-+ ant_conf->alt_gaintb = 0;
-+ break;
-+ case 0x30: /* A+B A-B */
-+ ant_conf->fast_div_bias = 0x1;
-+ ant_conf->main_gaintb = 0;
-+ ant_conf->alt_gaintb = 0;
-+ break;
-+ case 0x31: /* A+B LNA2 */
-+ ant_conf->fast_div_bias = 0x1;
-+ ant_conf->main_gaintb = 0;
-+ ant_conf->alt_gaintb = 0;
-+ break;
-+ case 0x32: /* A+B LNA1 */
-+ ant_conf->fast_div_bias = 0x1;
-+ ant_conf->main_gaintb = 0;
-+ ant_conf->alt_gaintb = 0;
-+ break;
-+ default:
-+ break;
-+ }
- } else if (ant_conf->div_group == 2) {
- /* Adjust the fast_div_bias based on main and alt_lna_conf */
- switch ((ant_conf->main_lna_conf << 4) |