diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-5000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index ab29aab6b2d5..b3c648ce8c7b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -651,7 +651,7 @@ static void iwl5000_init_alive_start(struct iwl_priv *priv) | |||
651 | goto restart; | 651 | goto restart; |
652 | } | 652 | } |
653 | 653 | ||
654 | priv->cfg->ops->smgmt->clear_station_table(priv); | 654 | iwl_clear_stations_table(priv); |
655 | ret = priv->cfg->ops->lib->alive_notify(priv); | 655 | ret = priv->cfg->ops->lib->alive_notify(priv); |
656 | if (ret) { | 656 | if (ret) { |
657 | IWL_WARN(priv, | 657 | IWL_WARN(priv, |
@@ -1049,7 +1049,10 @@ static int iwl5000_txq_agg_disable(struct iwl_priv *priv, u16 txq_id, | |||
1049 | u16 iwl5000_build_addsta_hcmd(const struct iwl_addsta_cmd *cmd, u8 *data) | 1049 | u16 iwl5000_build_addsta_hcmd(const struct iwl_addsta_cmd *cmd, u8 *data) |
1050 | { | 1050 | { |
1051 | u16 size = (u16)sizeof(struct iwl_addsta_cmd); | 1051 | u16 size = (u16)sizeof(struct iwl_addsta_cmd); |
1052 | memcpy(data, cmd, size); | 1052 | struct iwl_addsta_cmd *addsta = (struct iwl_addsta_cmd *)data; |
1053 | memcpy(addsta, cmd, size); | ||
1054 | /* resrved in 5000 */ | ||
1055 | addsta->rate_n_flags = cpu_to_le16(0); | ||
1053 | return size; | 1056 | return size; |
1054 | } | 1057 | } |
1055 | 1058 | ||
@@ -1423,13 +1426,6 @@ int iwl5000_calc_rssi(struct iwl_priv *priv, | |||
1423 | return max_rssi - agc - IWL49_RSSI_OFFSET; | 1426 | return max_rssi - agc - IWL49_RSSI_OFFSET; |
1424 | } | 1427 | } |
1425 | 1428 | ||
1426 | struct iwl_station_mgmt_ops iwl5000_station_mgmt = { | ||
1427 | .add_station = iwl_add_station_flags, | ||
1428 | .remove_station = iwl_remove_station, | ||
1429 | .find_station = iwl_find_station, | ||
1430 | .clear_station_table = iwl_clear_stations_table, | ||
1431 | }; | ||
1432 | |||
1433 | struct iwl_hcmd_ops iwl5000_hcmd = { | 1429 | struct iwl_hcmd_ops iwl5000_hcmd = { |
1434 | .rxon_assoc = iwl5000_send_rxon_assoc, | 1430 | .rxon_assoc = iwl5000_send_rxon_assoc, |
1435 | .commit_rxon = iwl_commit_rxon, | 1431 | .commit_rxon = iwl_commit_rxon, |
@@ -1549,14 +1545,12 @@ struct iwl_ops iwl5000_ops = { | |||
1549 | .lib = &iwl5000_lib, | 1545 | .lib = &iwl5000_lib, |
1550 | .hcmd = &iwl5000_hcmd, | 1546 | .hcmd = &iwl5000_hcmd, |
1551 | .utils = &iwl5000_hcmd_utils, | 1547 | .utils = &iwl5000_hcmd_utils, |
1552 | .smgmt = &iwl5000_station_mgmt, | ||
1553 | }; | 1548 | }; |
1554 | 1549 | ||
1555 | static struct iwl_ops iwl5150_ops = { | 1550 | static struct iwl_ops iwl5150_ops = { |
1556 | .lib = &iwl5150_lib, | 1551 | .lib = &iwl5150_lib, |
1557 | .hcmd = &iwl5000_hcmd, | 1552 | .hcmd = &iwl5000_hcmd, |
1558 | .utils = &iwl5000_hcmd_utils, | 1553 | .utils = &iwl5000_hcmd_utils, |
1559 | .smgmt = &iwl5000_station_mgmt, | ||
1560 | }; | 1554 | }; |
1561 | 1555 | ||
1562 | struct iwl_mod_params iwl50_mod_params = { | 1556 | struct iwl_mod_params iwl50_mod_params = { |