brcmfmac: prepare for const netdev->dev_addr
netdev->dev_addr will become const soon. Make sure local variables maintain that qualifier. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20211018235021.1279697-8-kuba@kernel.org
This commit is contained in:
parent
251277af9c
commit
fba610c5bf
@ -2125,7 +2125,7 @@ static int brcmf_p2p_disable_p2p_if(struct brcmf_cfg80211_vif *vif)
|
||||
struct brcmf_cfg80211_info *cfg = wdev_to_cfg(&vif->wdev);
|
||||
struct net_device *pri_ndev = cfg_to_ndev(cfg);
|
||||
struct brcmf_if *ifp = netdev_priv(pri_ndev);
|
||||
u8 *addr = vif->wdev.netdev->dev_addr;
|
||||
const u8 *addr = vif->wdev.netdev->dev_addr;
|
||||
|
||||
return brcmf_fil_iovar_data_set(ifp, "p2p_ifdis", addr, ETH_ALEN);
|
||||
}
|
||||
@ -2135,7 +2135,7 @@ static int brcmf_p2p_release_p2p_if(struct brcmf_cfg80211_vif *vif)
|
||||
struct brcmf_cfg80211_info *cfg = wdev_to_cfg(&vif->wdev);
|
||||
struct net_device *pri_ndev = cfg_to_ndev(cfg);
|
||||
struct brcmf_if *ifp = netdev_priv(pri_ndev);
|
||||
u8 *addr = vif->wdev.netdev->dev_addr;
|
||||
const u8 *addr = vif->wdev.netdev->dev_addr;
|
||||
|
||||
return brcmf_fil_iovar_data_set(ifp, "p2p_ifdel", addr, ETH_ALEN);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user