diff options
author | Dan Williams <dcbw@redhat.com> | 2007-05-25 13:16:38 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-06-11 14:28:40 -0400 |
commit | 4ace1138767869547944798ba9f1fd6d1e048acb (patch) | |
tree | aa701b2c1c518e929be679d60223be1bb4e3b365 /drivers/net/wireless/libertas/join.c | |
parent | 7732ca45c68f893689a8c0d8c6e2eb2bfefbc087 (diff) |
[PATCH] libertas: replace 'macaddress' with 'bssid'
Start to normalize bss_descriptor with ieee80211_network so we can
eventually replace bss_descriptor more easily.
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/join.c')
-rw-r--r-- | drivers/net/wireless/libertas/join.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/net/wireless/libertas/join.c b/drivers/net/wireless/libertas/join.c index 8c578ec452e4..c9111b877067 100644 --- a/drivers/net/wireless/libertas/join.c +++ b/drivers/net/wireless/libertas/join.c | |||
@@ -113,7 +113,7 @@ int wlan_associate(wlan_private * priv, struct bss_descriptor * pbssdesc) | |||
113 | 113 | ||
114 | ret = libertas_prepare_and_send_command(priv, cmd_802_11_authenticate, | 114 | ret = libertas_prepare_and_send_command(priv, cmd_802_11_authenticate, |
115 | 0, cmd_option_waitforrsp, | 115 | 0, cmd_option_waitforrsp, |
116 | 0, pbssdesc->macaddress); | 116 | 0, pbssdesc->bssid); |
117 | 117 | ||
118 | if (ret) | 118 | if (ret) |
119 | goto done; | 119 | goto done; |
@@ -353,7 +353,7 @@ int libertas_cmd_80211_associate(wlan_private * priv, | |||
353 | adapter->pattemptedbssdesc = pbssdesc; | 353 | adapter->pattemptedbssdesc = pbssdesc; |
354 | 354 | ||
355 | memcpy(passo->peerstaaddr, | 355 | memcpy(passo->peerstaaddr, |
356 | pbssdesc->macaddress, sizeof(passo->peerstaaddr)); | 356 | pbssdesc->bssid, sizeof(passo->peerstaaddr)); |
357 | pos += sizeof(passo->peerstaaddr); | 357 | pos += sizeof(passo->peerstaaddr); |
358 | 358 | ||
359 | /* set the listen interval */ | 359 | /* set the listen interval */ |
@@ -632,7 +632,7 @@ int libertas_cmd_80211_ad_hoc_join(wlan_private * priv, | |||
632 | padhocjoin->bssdescriptor.beaconperiod = pbssdesc->beaconperiod; | 632 | padhocjoin->bssdescriptor.beaconperiod = pbssdesc->beaconperiod; |
633 | 633 | ||
634 | memcpy(&padhocjoin->bssdescriptor.BSSID, | 634 | memcpy(&padhocjoin->bssdescriptor.BSSID, |
635 | &pbssdesc->macaddress, ETH_ALEN); | 635 | &pbssdesc->bssid, ETH_ALEN); |
636 | 636 | ||
637 | memcpy(&padhocjoin->bssdescriptor.SSID, | 637 | memcpy(&padhocjoin->bssdescriptor.SSID, |
638 | &pbssdesc->ssid.ssid, pbssdesc->ssid.ssidlength); | 638 | &pbssdesc->ssid.ssid, pbssdesc->ssid.ssidlength); |
@@ -787,7 +787,7 @@ int libertas_ret_80211_associate(wlan_private * priv, | |||
787 | 787 | ||
788 | /* Set the new BSSID (AP's MAC address) to current BSSID */ | 788 | /* Set the new BSSID (AP's MAC address) to current BSSID */ |
789 | memcpy(adapter->curbssparams.bssid, | 789 | memcpy(adapter->curbssparams.bssid, |
790 | pbssdesc->macaddress, ETH_ALEN); | 790 | pbssdesc->bssid, ETH_ALEN); |
791 | 791 | ||
792 | /* Make a copy of current BSSID descriptor */ | 792 | /* Make a copy of current BSSID descriptor */ |
793 | memcpy(&adapter->curbssparams.bssdescriptor, | 793 | memcpy(&adapter->curbssparams.bssdescriptor, |
@@ -880,8 +880,7 @@ int libertas_ret_80211_ad_hoc_start(wlan_private * priv, | |||
880 | 880 | ||
881 | if (command == cmd_ret_802_11_ad_hoc_start) { | 881 | if (command == cmd_ret_802_11_ad_hoc_start) { |
882 | /* Update the created network descriptor with the new BSSID */ | 882 | /* Update the created network descriptor with the new BSSID */ |
883 | memcpy(pbssdesc->macaddress, | 883 | memcpy(pbssdesc->bssid, padhocresult->BSSID, ETH_ALEN); |
884 | padhocresult->BSSID, ETH_ALEN); | ||
885 | } else { | 884 | } else { |
886 | 885 | ||
887 | /* Make a copy of current BSSID descriptor, only needed for join since | 886 | /* Make a copy of current BSSID descriptor, only needed for join since |
@@ -892,8 +891,7 @@ int libertas_ret_80211_ad_hoc_start(wlan_private * priv, | |||
892 | } | 891 | } |
893 | 892 | ||
894 | /* Set the BSSID from the joined/started descriptor */ | 893 | /* Set the BSSID from the joined/started descriptor */ |
895 | memcpy(&adapter->curbssparams.bssid, | 894 | memcpy(&adapter->curbssparams.bssid, pbssdesc->bssid, ETH_ALEN); |
896 | pbssdesc->macaddress, ETH_ALEN); | ||
897 | 895 | ||
898 | /* Set the new SSID to current SSID */ | 896 | /* Set the new SSID to current SSID */ |
899 | memcpy(&adapter->curbssparams.ssid, | 897 | memcpy(&adapter->curbssparams.ssid, |