diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-04-12 14:25:14 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-12 14:41:59 -0400 |
commit | 7eab0f64a9eba5405222fdef0ede2468bf495efd (patch) | |
tree | ec99640b8d0b12adbfacb85c27683125debd14f2 /drivers/net/wireless/iwlwifi/iwl-testmode.c | |
parent | cade455596504fae8e134a27189713ddf7c6d04d (diff) | |
parent | 8065248069097dddf9945acfb2081025e9618c16 (diff) |
Merge branch 'master' into for-davem
Conflicts:
drivers/net/wireless/iwlwifi/iwl-testmode.c
net/wireless/nl80211.c
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-testmode.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-testmode.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-testmode.c b/drivers/net/wireless/iwlwifi/iwl-testmode.c index a54e20e7b17f..f31a0629c6c6 100644 --- a/drivers/net/wireless/iwlwifi/iwl-testmode.c +++ b/drivers/net/wireless/iwlwifi/iwl-testmode.c | |||
@@ -423,10 +423,13 @@ nla_put_failure: | |||
423 | static int iwl_testmode_cfg_init_calib(struct iwl_priv *priv) | 423 | static int iwl_testmode_cfg_init_calib(struct iwl_priv *priv) |
424 | { | 424 | { |
425 | struct iwl_notification_wait calib_wait; | 425 | struct iwl_notification_wait calib_wait; |
426 | static const u8 calib_complete[] = { | ||
427 | CALIBRATION_COMPLETE_NOTIFICATION | ||
428 | }; | ||
426 | int ret; | 429 | int ret; |
427 | 430 | ||
428 | iwl_init_notification_wait(&priv->notif_wait, &calib_wait, | 431 | iwl_init_notification_wait(&priv->notif_wait, &calib_wait, |
429 | CALIBRATION_COMPLETE_NOTIFICATION, | 432 | calib_complete, ARRAY_SIZE(calib_complete), |
430 | NULL, NULL); | 433 | NULL, NULL); |
431 | ret = iwl_init_alive_start(priv); | 434 | ret = iwl_init_alive_start(priv); |
432 | if (ret) { | 435 | if (ret) { |
@@ -605,11 +608,11 @@ static int iwl_testmode_driver(struct ieee80211_hw *hw, struct nlattr **tb) | |||
605 | IWL_ERR(priv, "No uCode has not been loaded\n"); | 608 | IWL_ERR(priv, "No uCode has not been loaded\n"); |
606 | return -EINVAL; | 609 | return -EINVAL; |
607 | } else { | 610 | } else { |
608 | img = &priv->fw->img[priv->shrd->ucode_type]; | 611 | img = &priv->fw->img[priv->cur_ucode]; |
609 | inst_size = img->sec[IWL_UCODE_SECTION_INST].len; | 612 | inst_size = img->sec[IWL_UCODE_SECTION_INST].len; |
610 | data_size = img->sec[IWL_UCODE_SECTION_DATA].len; | 613 | data_size = img->sec[IWL_UCODE_SECTION_DATA].len; |
611 | } | 614 | } |
612 | if (nla_put_u32(skb, IWL_TM_ATTR_FW_TYPE, priv->shrd->ucode_type) || | 615 | if (nla_put_u32(skb, IWL_TM_ATTR_FW_TYPE, priv->cur_ucode) || |
613 | nla_put_u32(skb, IWL_TM_ATTR_FW_INST_SIZE, inst_size) || | 616 | nla_put_u32(skb, IWL_TM_ATTR_FW_INST_SIZE, inst_size) || |
614 | nla_put_u32(skb, IWL_TM_ATTR_FW_DATA_SIZE, data_size)) | 617 | nla_put_u32(skb, IWL_TM_ATTR_FW_DATA_SIZE, data_size)) |
615 | goto nla_put_failure; | 618 | goto nla_put_failure; |