Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ath9k: Update BaseExtension_1 eeprom structure

* Add a new field "misc_enable"
* Use int_8 for tempslopextension.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Sujith Manoharan and committed by
John W. Linville
ee65b388 66a80a3a

+17 -7
+5 -5
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
··· 139 139 }, 140 140 .base_ext1 = { 141 141 .ant_div_control = 0, 142 - .future = {0, 0, 0}, 142 + .future = {0, 0}, 143 143 .tempslopextension = {0, 0, 0, 0, 0, 0, 0, 0} 144 144 }, 145 145 .calFreqPier2G = { ··· 717 717 }, 718 718 .base_ext1 = { 719 719 .ant_div_control = 0, 720 - .future = {0, 0, 0}, 720 + .future = {0, 0}, 721 721 .tempslopextension = {0, 0, 0, 0, 0, 0, 0, 0} 722 722 }, 723 723 .calFreqPier2G = { ··· 1296 1296 }, 1297 1297 .base_ext1 = { 1298 1298 .ant_div_control = 0, 1299 - .future = {0, 0, 0}, 1299 + .future = {0, 0}, 1300 1300 .tempslopextension = {0, 0, 0, 0, 0, 0, 0, 0} 1301 1301 }, 1302 1302 .calFreqPier2G = { ··· 1875 1875 }, 1876 1876 .base_ext1 = { 1877 1877 .ant_div_control = 0, 1878 - .future = {0, 0, 0}, 1878 + .future = {0, 0}, 1879 1879 .tempslopextension = {0, 0, 0, 0, 0, 0, 0, 0} 1880 1880 }, 1881 1881 .calFreqPier2G = { ··· 2453 2453 }, 2454 2454 .base_ext1 = { 2455 2455 .ant_div_control = 0, 2456 - .future = {0, 0, 0}, 2456 + .future = {0, 0}, 2457 2457 .tempslopextension = {0, 0, 0, 0, 0, 0, 0, 0} 2458 2458 }, 2459 2459 .calFreqPier2G = {
+12 -2
drivers/net/wireless/ath/ath9k/ar9003_eeprom.h
··· 270 270 u8 ctlEdges[AR9300_NUM_BAND_EDGES_5G]; 271 271 } __packed; 272 272 273 + #define MAX_BASE_EXTENSION_FUTURE 2 274 + 273 275 struct ar9300_BaseExtension_1 { 274 276 u8 ant_div_control; 275 - u8 future[3]; 276 - u8 tempslopextension[8]; 277 + u8 future[MAX_BASE_EXTENSION_FUTURE]; 278 + /* 279 + * misc_enable: 280 + * 281 + * BIT 0 - TX Gain Cap enable. 282 + * BIT 1 - Uncompressed Checksum enable. 283 + * BIT 2/3 - MinCCApwr enable 2g/5g. 284 + */ 285 + u8 misc_enable; 286 + int8_t tempslopextension[8]; 277 287 int8_t quick_drop_low; 278 288 int8_t quick_drop_high; 279 289 } __packed;