diff options
author | John W. Linville <linville@tuxdriver.com> | 2008-09-30 20:59:05 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:00:50 -0400 |
commit | 9387b7caf3049168fc97a8a9111af8fe2143af18 (patch) | |
tree | 6a19e5477d6a6badf19788536a9d3e1913ae48e1 /drivers/net/wireless/iwlwifi/iwl3945-base.c | |
parent | 2819f8ad6da1e24b5dd94a221978e61f2a9c972a (diff) |
wireless: use individual buffers for printing ssid values
Also change escape_ssid to print_ssid to match print_mac semantics.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 370cc46b488..8009094503e 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -6054,6 +6054,7 @@ static void iwl3945_bg_request_scan(struct work_struct *data) | |||
6054 | struct ieee80211_conf *conf = NULL; | 6054 | struct ieee80211_conf *conf = NULL; |
6055 | u8 n_probes = 2; | 6055 | u8 n_probes = 2; |
6056 | enum ieee80211_band band; | 6056 | enum ieee80211_band band; |
6057 | DECLARE_SSID_BUF(ssid); | ||
6057 | 6058 | ||
6058 | conf = ieee80211_get_hw_conf(priv->hw); | 6059 | conf = ieee80211_get_hw_conf(priv->hw); |
6059 | 6060 | ||
@@ -6154,7 +6155,8 @@ static void iwl3945_bg_request_scan(struct work_struct *data) | |||
6154 | if (priv->one_direct_scan) { | 6155 | if (priv->one_direct_scan) { |
6155 | IWL_DEBUG_SCAN | 6156 | IWL_DEBUG_SCAN |
6156 | ("Kicking off one direct scan for '%s'\n", | 6157 | ("Kicking off one direct scan for '%s'\n", |
6157 | escape_ssid(priv->direct_ssid, priv->direct_ssid_len)); | 6158 | print_ssid(ssid, priv->direct_ssid, |
6159 | priv->direct_ssid_len)); | ||
6158 | scan->direct_scan[0].id = WLAN_EID_SSID; | 6160 | scan->direct_scan[0].id = WLAN_EID_SSID; |
6159 | scan->direct_scan[0].len = priv->direct_ssid_len; | 6161 | scan->direct_scan[0].len = priv->direct_ssid_len; |
6160 | memcpy(scan->direct_scan[0].ssid, | 6162 | memcpy(scan->direct_scan[0].ssid, |
@@ -6163,7 +6165,7 @@ static void iwl3945_bg_request_scan(struct work_struct *data) | |||
6163 | } else if (!iwl3945_is_associated(priv) && priv->essid_len) { | 6165 | } else if (!iwl3945_is_associated(priv) && priv->essid_len) { |
6164 | IWL_DEBUG_SCAN | 6166 | IWL_DEBUG_SCAN |
6165 | ("Kicking off one direct scan for '%s' when not associated\n", | 6167 | ("Kicking off one direct scan for '%s' when not associated\n", |
6166 | escape_ssid(priv->essid, priv->essid_len)); | 6168 | print_ssid(ssid, priv->essid, priv->essid_len)); |
6167 | scan->direct_scan[0].id = WLAN_EID_SSID; | 6169 | scan->direct_scan[0].id = WLAN_EID_SSID; |
6168 | scan->direct_scan[0].len = priv->essid_len; | 6170 | scan->direct_scan[0].len = priv->essid_len; |
6169 | memcpy(scan->direct_scan[0].ssid, priv->essid, priv->essid_len); | 6171 | memcpy(scan->direct_scan[0].ssid, priv->essid, priv->essid_len); |
@@ -6945,6 +6947,7 @@ static int iwl3945_mac_hw_scan(struct ieee80211_hw *hw, u8 *ssid, size_t len) | |||
6945 | int rc = 0; | 6947 | int rc = 0; |
6946 | unsigned long flags; | 6948 | unsigned long flags; |
6947 | struct iwl3945_priv *priv = hw->priv; | 6949 | struct iwl3945_priv *priv = hw->priv; |
6950 | DECLARE_SSID_BUF(ssid_buf); | ||
6948 | 6951 | ||
6949 | IWL_DEBUG_MAC80211("enter\n"); | 6952 | IWL_DEBUG_MAC80211("enter\n"); |
6950 | 6953 | ||
@@ -6978,7 +6981,7 @@ static int iwl3945_mac_hw_scan(struct ieee80211_hw *hw, u8 *ssid, size_t len) | |||
6978 | } | 6981 | } |
6979 | if (len) { | 6982 | if (len) { |
6980 | IWL_DEBUG_SCAN("direct scan for %s [%d]\n ", | 6983 | IWL_DEBUG_SCAN("direct scan for %s [%d]\n ", |
6981 | escape_ssid(ssid, len), (int)len); | 6984 | print_ssid(ssid_buf, ssid, len), (int)len); |
6982 | 6985 | ||
6983 | priv->one_direct_scan = 1; | 6986 | priv->one_direct_scan = 1; |
6984 | priv->direct_ssid_len = (u8) | 6987 | priv->direct_ssid_len = (u8) |