Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ead3dcff authored by Bruno Randolf's avatar Bruno Randolf Committed by John W. Linville
Browse files

ath5k: Enable 802.11j 4.9GHz frequencies



This enables 4.9GHz frequencies in ath5k if they are allowed as indicated by
the regulatory domain code. Currently this is MKK9_MKKC (0xfe).

Signed-off-by: default avatarBruno Randolf <br1@einfach.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 5719efdd
Loading
Loading
Loading
Loading
+6 −5
Original line number Original line Diff line number Diff line
@@ -57,9 +57,8 @@ int ath5k_hw_set_capabilities(struct ath5k_hw *ah)
		 * XXX current ieee80211 implementation because the IEEE
		 * XXX current ieee80211 implementation because the IEEE
		 * XXX channel mapping does not support negative channel
		 * XXX channel mapping does not support negative channel
		 * XXX numbers (2312MHz is channel -19). Of course, this
		 * XXX numbers (2312MHz is channel -19). Of course, this
		 * XXX doesn't matter because these channels are out of range
		 * XXX doesn't matter because these channels are out of the
		 * XXX but some regulation domains like MKK (Japan) will
		 * XXX legal range.
		 * XXX support frequencies somewhere around 4.8GHz.
		 */
		 */


		/*
		/*
@@ -67,7 +66,9 @@ int ath5k_hw_set_capabilities(struct ath5k_hw *ah)
		 */
		 */


		if (AR5K_EEPROM_HDR_11A(ee_header)) {
		if (AR5K_EEPROM_HDR_11A(ee_header)) {
			/* 4920 */
			if (ath_is_49ghz_allowed(caps->cap_eeprom.ee_regdomain))
				caps->cap_range.range_5ghz_min = 4920;
			else
				caps->cap_range.range_5ghz_min = 5005;
				caps->cap_range.range_5ghz_min = 5005;
			caps->cap_range.range_5ghz_max = 6100;
			caps->cap_range.range_5ghz_max = 6100;