staging: rtl8712: prepare for const netdev->dev_addr
netdev->dev_addr will be const soon, make sure the qualifier is respected by drivers. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Link: https://lore.kernel.org/r/20211019171243.1412240-6-kuba@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e7fd1a5a37
commit
d0cf28f1f5
|
@ -388,7 +388,8 @@ static int netdev_open(struct net_device *pnetdev)
|
|||
* address.
|
||||
*/
|
||||
msleep(200);
|
||||
r8712_setMacAddr_cmd(padapter, (u8 *)pnetdev->dev_addr);
|
||||
r8712_setMacAddr_cmd(padapter,
|
||||
(const u8 *)pnetdev->dev_addr);
|
||||
/*
|
||||
* The "myid" function will get the wifi mac address
|
||||
* from eeprompriv structure instead of netdev
|
||||
|
|
|
@ -554,7 +554,7 @@ void r8712_setstakey_cmd(struct _adapter *padapter, u8 *psta, u8 unicast_key)
|
|||
r8712_enqueue_cmd(pcmdpriv, ph2c);
|
||||
}
|
||||
|
||||
void r8712_setMacAddr_cmd(struct _adapter *padapter, u8 *mac_addr)
|
||||
void r8712_setMacAddr_cmd(struct _adapter *padapter, const u8 *mac_addr)
|
||||
{
|
||||
struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
|
||||
struct cmd_obj *ph2c;
|
||||
|
|
|
@ -718,7 +718,7 @@ struct DisconnectCtrlEx_param {
|
|||
#define H2C_CMD_OVERFLOW 0x06
|
||||
#define H2C_RESERVED 0x07
|
||||
|
||||
void r8712_setMacAddr_cmd(struct _adapter *padapter, u8 *mac_addr);
|
||||
void r8712_setMacAddr_cmd(struct _adapter *padapter, const u8 *mac_addr);
|
||||
u8 r8712_sitesurvey_cmd(struct _adapter *padapter,
|
||||
struct ndis_802_11_ssid *pssid);
|
||||
int r8712_createbss_cmd(struct _adapter *padapter);
|
||||
|
|
Loading…
Reference in New Issue