|
@@ -611,7 +611,7 @@ static int __iw_set_dot11p_channel_sched(struct net_device *dev,
|
|
|
/* Release all the mac addresses used for OCB */
|
|
|
for (i = 0; i < adapter->ocb_mac_addr_count; i++) {
|
|
|
wlan_hdd_release_intf_addr(adapter->pHddCtx,
|
|
|
- adapter->ocb_mac_address[i]);
|
|
|
+ adapter->ocb_mac_address[i].bytes);
|
|
|
}
|
|
|
adapter->ocb_mac_addr_count = 0;
|
|
|
|
|
@@ -639,9 +639,8 @@ static int __iw_set_dot11p_channel_sched(struct net_device *dev,
|
|
|
* First channel uses the adapter's address.
|
|
|
*/
|
|
|
if (i == 0) {
|
|
|
- cdf_mem_copy(curr_chan->mac_address,
|
|
|
- adapter->macAddressCurrent.bytes,
|
|
|
- sizeof(tSirMacAddr));
|
|
|
+ cdf_copy_macaddr(&curr_chan->mac_address,
|
|
|
+ &adapter->macAddressCurrent);
|
|
|
} else {
|
|
|
mac_addr = wlan_hdd_get_intf_addr(adapter->pHddCtx);
|
|
|
if (mac_addr == NULL) {
|
|
@@ -650,14 +649,12 @@ static int __iw_set_dot11p_channel_sched(struct net_device *dev,
|
|
|
goto fail;
|
|
|
}
|
|
|
cdf_mem_copy(config->channels[
|
|
|
- config->channel_count].mac_address,
|
|
|
+ config->channel_count].mac_address.bytes,
|
|
|
mac_addr, sizeof(tSirMacAddr));
|
|
|
/* Save the mac address to release later */
|
|
|
cdf_mem_copy(adapter->ocb_mac_address[
|
|
|
- adapter->ocb_mac_addr_count],
|
|
|
- mac_addr,
|
|
|
- sizeof(adapter->ocb_mac_address[
|
|
|
- adapter->ocb_mac_addr_count]));
|
|
|
+ adapter->ocb_mac_addr_count].bytes,
|
|
|
+ mac_addr, CDF_MAC_ADDR_SIZE);
|
|
|
adapter->ocb_mac_addr_count++;
|
|
|
}
|
|
|
|
|
@@ -978,7 +975,7 @@ static int __wlan_hdd_cfg80211_ocb_set_config(struct wiphy *wiphy,
|
|
|
/* Release all the mac addresses used for OCB */
|
|
|
for (i = 0; i < adapter->ocb_mac_addr_count; i++) {
|
|
|
wlan_hdd_release_intf_addr(adapter->pHddCtx,
|
|
|
- adapter->ocb_mac_address[i]);
|
|
|
+ adapter->ocb_mac_address[i].bytes);
|
|
|
}
|
|
|
adapter->ocb_mac_addr_count = 0;
|
|
|
|
|
@@ -988,23 +985,20 @@ static int __wlan_hdd_cfg80211_ocb_set_config(struct wiphy *wiphy,
|
|
|
*/
|
|
|
for (i = 0; i < config->channel_count; i++) {
|
|
|
if (i == 0) {
|
|
|
- cdf_mem_copy(config->channels[i].mac_address,
|
|
|
- adapter->macAddressCurrent.bytes,
|
|
|
- sizeof(tSirMacAddr));
|
|
|
+ cdf_copy_macaddr(&config->channels[i].mac_address,
|
|
|
+ &adapter->macAddressCurrent);
|
|
|
} else {
|
|
|
mac_addr = wlan_hdd_get_intf_addr(adapter->pHddCtx);
|
|
|
if (mac_addr == NULL) {
|
|
|
hddLog(LOGE, FL("Cannot obtain mac address"));
|
|
|
goto fail;
|
|
|
}
|
|
|
- cdf_mem_copy(config->channels[i].mac_address,
|
|
|
- mac_addr, sizeof(tSirMacAddr));
|
|
|
+ cdf_mem_copy(config->channels[i].mac_address.bytes,
|
|
|
+ mac_addr, CDF_MAC_ADDR_SIZE);
|
|
|
/* Save the mac address to release later */
|
|
|
- cdf_mem_copy(adapter->ocb_mac_address[
|
|
|
+ cdf_copy_macaddr(&adapter->ocb_mac_address[
|
|
|
adapter->ocb_mac_addr_count],
|
|
|
- config->channels[i].mac_address,
|
|
|
- sizeof(adapter->ocb_mac_address[
|
|
|
- adapter->ocb_mac_addr_count]));
|
|
|
+ &config->channels[i].mac_address);
|
|
|
adapter->ocb_mac_addr_count++;
|
|
|
}
|
|
|
}
|