caps.c (b74b953b998bcc2db91b694446f3a2619ec32de6) caps.c (8c2b418a07b4dc77d7efadb890ba9ad1a4161c3f)
1/*
2 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org>
3 * Copyright (c) 2006-2008 Nick Kossifidis <mickflemm@gmail.com>
4 * Copyright (c) 2007-2008 Jiri Slaby <jirislaby@gmail.com>
5 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.

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

44 */
45 ah->ah_capabilities.cap_range.range_5ghz_min = 5120;
46 ah->ah_capabilities.cap_range.range_5ghz_max = 5430;
47 ah->ah_capabilities.cap_range.range_2ghz_min = 0;
48 ah->ah_capabilities.cap_range.range_2ghz_max = 0;
49
50 /* Set supported modes */
51 __set_bit(AR5K_MODE_11A, ah->ah_capabilities.cap_mode);
1/*
2 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org>
3 * Copyright (c) 2006-2008 Nick Kossifidis <mickflemm@gmail.com>
4 * Copyright (c) 2007-2008 Jiri Slaby <jirislaby@gmail.com>
5 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.

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

44 */
45 ah->ah_capabilities.cap_range.range_5ghz_min = 5120;
46 ah->ah_capabilities.cap_range.range_5ghz_max = 5430;
47 ah->ah_capabilities.cap_range.range_2ghz_min = 0;
48 ah->ah_capabilities.cap_range.range_2ghz_max = 0;
49
50 /* Set supported modes */
51 __set_bit(AR5K_MODE_11A, ah->ah_capabilities.cap_mode);
52 __set_bit(AR5K_MODE_11A_TURBO, ah->ah_capabilities.cap_mode);
53 } else {
54 /*
55 * XXX The tranceiver supports frequencies from 4920 to 6100GHz
56 * XXX and from 2312 to 2732GHz. There are problems with the
57 * XXX current ieee80211 implementation because the IEEE
58 * XXX channel mapping does not support negative channel
59 * XXX numbers (2312MHz is channel -19). Of course, this
60 * XXX doesn't matter because these channels are out of range

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

69 if (AR5K_EEPROM_HDR_11A(ee_header)) {
70 /* 4920 */
71 ah->ah_capabilities.cap_range.range_5ghz_min = 5005;
72 ah->ah_capabilities.cap_range.range_5ghz_max = 6100;
73
74 /* Set supported modes */
75 __set_bit(AR5K_MODE_11A,
76 ah->ah_capabilities.cap_mode);
52 } else {
53 /*
54 * XXX The tranceiver supports frequencies from 4920 to 6100GHz
55 * XXX and from 2312 to 2732GHz. There are problems with the
56 * XXX current ieee80211 implementation because the IEEE
57 * XXX channel mapping does not support negative channel
58 * XXX numbers (2312MHz is channel -19). Of course, this
59 * XXX doesn't matter because these channels are out of range

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

68 if (AR5K_EEPROM_HDR_11A(ee_header)) {
69 /* 4920 */
70 ah->ah_capabilities.cap_range.range_5ghz_min = 5005;
71 ah->ah_capabilities.cap_range.range_5ghz_max = 6100;
72
73 /* Set supported modes */
74 __set_bit(AR5K_MODE_11A,
75 ah->ah_capabilities.cap_mode);
77 __set_bit(AR5K_MODE_11A_TURBO,
78 ah->ah_capabilities.cap_mode);
79 if (ah->ah_version == AR5K_AR5212)
80 __set_bit(AR5K_MODE_11G_TURBO,
81 ah->ah_capabilities.cap_mode);
82 }
83
84 /* Enable 802.11b if a 2GHz capable radio (2111/5112) is
85 * connected */
86 if (AR5K_EEPROM_HDR_11B(ee_header) ||
87 (AR5K_EEPROM_HDR_11G(ee_header) &&
88 ah->ah_version != AR5K_AR5211)) {
89 /* 2312 */

--- 102 unchanged lines hidden ---
76 }
77
78 /* Enable 802.11b if a 2GHz capable radio (2111/5112) is
79 * connected */
80 if (AR5K_EEPROM_HDR_11B(ee_header) ||
81 (AR5K_EEPROM_HDR_11G(ee_header) &&
82 ah->ah_version != AR5K_AR5211)) {
83 /* 2312 */

--- 102 unchanged lines hidden ---