aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLuciano Coelho <luciano.coelho@nokia.com>2009-12-11 08:40:40 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-12-28 16:31:28 -0500
commit937a67e75a93b63f0b5d33612901906b8eb2a688 (patch)
treed0d6f8ca40fb88948f68b869f397a54dfef389a4 /drivers
parentb02914af4d7020828ce921a572589dd793517c09 (diff)
wl1271: updated radio parameters structure for newer firmwares
In revision 6.1.0.0.288 the radio parameters structure has changed. This patch updates the driver code accordingly. Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_cmd.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_cmd.h b/drivers/net/wireless/wl12xx/wl1271_cmd.h
index b4fa4acb9229..de23c08738a0 100644
--- a/drivers/net/wireless/wl12xx/wl1271_cmd.h
+++ b/drivers/net/wireless/wl12xx/wl1271_cmd.h
@@ -458,11 +458,12 @@ struct wl1271_radio_parms_cmd {
458 /* Dynamic radio parameters */ 458 /* Dynamic radio parameters */
459 /* 2.4GHz */ 459 /* 2.4GHz */
460 __le16 tx_ref_pd_voltage; 460 __le16 tx_ref_pd_voltage;
461 s8 tx_ref_power; 461 u8 tx_ref_power;
462 s8 tx_offset_db; 462 s8 tx_offset_db;
463 463
464 s8 tx_rate_limits_normal[CONF_NUMBER_OF_RATE_GROUPS]; 464 s8 tx_rate_limits_normal[CONF_NUMBER_OF_RATE_GROUPS];
465 s8 tx_rate_limits_degraded[CONF_NUMBER_OF_RATE_GROUPS]; 465 s8 tx_rate_limits_degraded[CONF_NUMBER_OF_RATE_GROUPS];
466 s8 tx_rate_limits_extreme[CONF_NUMBER_OF_RATE_GROUPS];
466 467
467 s8 tx_channel_limits_11b[CONF_NUMBER_OF_CHANNELS_2_4]; 468 s8 tx_channel_limits_11b[CONF_NUMBER_OF_CHANNELS_2_4];
468 s8 tx_channel_limits_ofdm[CONF_NUMBER_OF_CHANNELS_2_4]; 469 s8 tx_channel_limits_ofdm[CONF_NUMBER_OF_CHANNELS_2_4];
@@ -471,15 +472,19 @@ struct wl1271_radio_parms_cmd {
471 u8 tx_ibias[CONF_NUMBER_OF_RATE_GROUPS]; 472 u8 tx_ibias[CONF_NUMBER_OF_RATE_GROUPS];
472 u8 rx_fem_insertion_loss; 473 u8 rx_fem_insertion_loss;
473 474
474 u8 padding2; 475 u8 degraded_low_to_normal_threshold;
476 u8 degraded_normal_to_high_threshold;
477
478 u8 padding1; /* our own padding, not in ref driver */
475 479
476 /* 5GHz */ 480 /* 5GHz */
477 __le16 tx_ref_pd_voltage_5[CONF_NUMBER_OF_SUB_BANDS_5]; 481 __le16 tx_ref_pd_voltage_5[CONF_NUMBER_OF_SUB_BANDS_5];
478 s8 tx_ref_power_5[CONF_NUMBER_OF_SUB_BANDS_5]; 482 u8 tx_ref_power_5[CONF_NUMBER_OF_SUB_BANDS_5];
479 s8 tx_offset_db_5[CONF_NUMBER_OF_SUB_BANDS_5]; 483 s8 tx_offset_db_5[CONF_NUMBER_OF_SUB_BANDS_5];
480 484
481 s8 tx_rate_limits_normal_5[CONF_NUMBER_OF_RATE_GROUPS]; 485 s8 tx_rate_limits_normal_5[CONF_NUMBER_OF_RATE_GROUPS];
482 s8 tx_rate_limits_degraded_5[CONF_NUMBER_OF_RATE_GROUPS]; 486 s8 tx_rate_limits_degraded_5[CONF_NUMBER_OF_RATE_GROUPS];
487 s8 tx_rate_limits_extreme_5[CONF_NUMBER_OF_RATE_GROUPS];
483 488
484 s8 tx_channel_limits_ofdm_5[CONF_NUMBER_OF_CHANNELS_5]; 489 s8 tx_channel_limits_ofdm_5[CONF_NUMBER_OF_CHANNELS_5];
485 s8 tx_pdv_rate_offsets_5[CONF_NUMBER_OF_RATE_GROUPS]; 490 s8 tx_pdv_rate_offsets_5[CONF_NUMBER_OF_RATE_GROUPS];
@@ -488,7 +493,10 @@ struct wl1271_radio_parms_cmd {
488 s8 tx_ibias_5[CONF_NUMBER_OF_RATE_GROUPS]; 493 s8 tx_ibias_5[CONF_NUMBER_OF_RATE_GROUPS];
489 s8 rx_fem_insertion_loss_5[CONF_NUMBER_OF_SUB_BANDS_5]; 494 s8 rx_fem_insertion_loss_5[CONF_NUMBER_OF_SUB_BANDS_5];
490 495
491 u8 padding3[2]; 496 u8 degraded_low_to_normal_threshold_5;
497 u8 degraded_normal_to_high_threshold_5;
498
499 u8 padding2[2];
492} __attribute__ ((packed)); 500} __attribute__ ((packed));
493 501
494struct wl1271_cmd_cal_channel_tune { 502struct wl1271_cmd_cal_channel_tune {