diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-10-04 08:50:06 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-10-14 12:46:42 -0400 |
commit | 12e934dc602fafba946b33587c38077ebceb3698 (patch) | |
tree | 9528b8448c291c7fa91d8c68e415571c46fb9ca2 /drivers/net/wireless/iwlwifi/iwl3945-base.c | |
parent | 085fbca29d7b4574c4e42189ee5789004e4beff7 (diff) |
iwlwifi: rename ibss_beacon variable
Since we're also going to support AP (GO) mode,
the variable isn't used for just IBSS beacons
any more -- rename it to not mislead readers.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 3ee3e55fa546..8f8c4b73f8b9 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -317,15 +317,15 @@ unsigned int iwl3945_fill_beacon_frame(struct iwl_priv *priv, | |||
317 | int left) | 317 | int left) |
318 | { | 318 | { |
319 | 319 | ||
320 | if (!iwl_is_associated(priv, IWL_RXON_CTX_BSS) || !priv->ibss_beacon) | 320 | if (!iwl_is_associated(priv, IWL_RXON_CTX_BSS) || !priv->beacon_skb) |
321 | return 0; | 321 | return 0; |
322 | 322 | ||
323 | if (priv->ibss_beacon->len > left) | 323 | if (priv->beacon_skb->len > left) |
324 | return 0; | 324 | return 0; |
325 | 325 | ||
326 | memcpy(hdr, priv->ibss_beacon->data, priv->ibss_beacon->len); | 326 | memcpy(hdr, priv->beacon_skb->data, priv->beacon_skb->len); |
327 | 327 | ||
328 | return priv->ibss_beacon->len; | 328 | return priv->beacon_skb->len; |
329 | } | 329 | } |
330 | 330 | ||
331 | static int iwl3945_send_beacon_cmd(struct iwl_priv *priv) | 331 | static int iwl3945_send_beacon_cmd(struct iwl_priv *priv) |
@@ -813,10 +813,10 @@ static void iwl3945_bg_beacon_update(struct work_struct *work) | |||
813 | 813 | ||
814 | mutex_lock(&priv->mutex); | 814 | mutex_lock(&priv->mutex); |
815 | /* new beacon skb is allocated every time; dispose previous.*/ | 815 | /* new beacon skb is allocated every time; dispose previous.*/ |
816 | if (priv->ibss_beacon) | 816 | if (priv->beacon_skb) |
817 | dev_kfree_skb(priv->ibss_beacon); | 817 | dev_kfree_skb(priv->beacon_skb); |
818 | 818 | ||
819 | priv->ibss_beacon = beacon; | 819 | priv->beacon_skb = beacon; |
820 | mutex_unlock(&priv->mutex); | 820 | mutex_unlock(&priv->mutex); |
821 | 821 | ||
822 | iwl3945_send_beacon_cmd(priv); | 822 | iwl3945_send_beacon_cmd(priv); |
@@ -2642,9 +2642,9 @@ static void __iwl3945_down(struct iwl_priv *priv) | |||
2642 | exit: | 2642 | exit: |
2643 | memset(&priv->card_alive, 0, sizeof(struct iwl_alive_resp)); | 2643 | memset(&priv->card_alive, 0, sizeof(struct iwl_alive_resp)); |
2644 | 2644 | ||
2645 | if (priv->ibss_beacon) | 2645 | if (priv->beacon_skb) |
2646 | dev_kfree_skb(priv->ibss_beacon); | 2646 | dev_kfree_skb(priv->beacon_skb); |
2647 | priv->ibss_beacon = NULL; | 2647 | priv->beacon_skb = NULL; |
2648 | 2648 | ||
2649 | /* clear out any free frames */ | 2649 | /* clear out any free frames */ |
2650 | iwl3945_clear_free_frames(priv); | 2650 | iwl3945_clear_free_frames(priv); |
@@ -3848,7 +3848,7 @@ static int iwl3945_init_drv(struct iwl_priv *priv) | |||
3848 | struct iwl3945_eeprom *eeprom = (struct iwl3945_eeprom *)priv->eeprom; | 3848 | struct iwl3945_eeprom *eeprom = (struct iwl3945_eeprom *)priv->eeprom; |
3849 | 3849 | ||
3850 | priv->retry_rate = 1; | 3850 | priv->retry_rate = 1; |
3851 | priv->ibss_beacon = NULL; | 3851 | priv->beacon_skb = NULL; |
3852 | 3852 | ||
3853 | spin_lock_init(&priv->sta_lock); | 3853 | spin_lock_init(&priv->sta_lock); |
3854 | spin_lock_init(&priv->hcmd_lock); | 3854 | spin_lock_init(&priv->hcmd_lock); |
@@ -4256,8 +4256,8 @@ static void __devexit iwl3945_pci_remove(struct pci_dev *pdev) | |||
4256 | iwl_free_channel_map(priv); | 4256 | iwl_free_channel_map(priv); |
4257 | iwlcore_free_geos(priv); | 4257 | iwlcore_free_geos(priv); |
4258 | kfree(priv->scan_cmd); | 4258 | kfree(priv->scan_cmd); |
4259 | if (priv->ibss_beacon) | 4259 | if (priv->beacon_skb) |
4260 | dev_kfree_skb(priv->ibss_beacon); | 4260 | dev_kfree_skb(priv->beacon_skb); |
4261 | 4261 | ||
4262 | ieee80211_free_hw(priv->hw); | 4262 | ieee80211_free_hw(priv->hw); |
4263 | } | 4263 | } |