staging: wilc1000: change return type to 'void' for wilc_wlan_set_bssid()
Cleanup patch to use 'void' return type for wilc_wlan_set_bssid(), as its always returns the same value. Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e8de0ac8c8
commit
080de24913
@ -192,14 +192,12 @@ static struct net_device *get_if_handler(struct wilc *wilc, u8 *mac_header)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
int wilc_wlan_set_bssid(struct net_device *wilc_netdev, u8 *bssid, u8 mode)
|
void wilc_wlan_set_bssid(struct net_device *wilc_netdev, u8 *bssid, u8 mode)
|
||||||
{
|
{
|
||||||
struct wilc_vif *vif = netdev_priv(wilc_netdev);
|
struct wilc_vif *vif = netdev_priv(wilc_netdev);
|
||||||
|
|
||||||
memcpy(vif->bssid, bssid, 6);
|
memcpy(vif->bssid, bssid, 6);
|
||||||
vif->mode = mode;
|
vif->mode = mode;
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int wilc_wlan_get_num_conn_ifcs(struct wilc *wilc)
|
int wilc_wlan_get_num_conn_ifcs(struct wilc *wilc)
|
||||||
|
@ -215,6 +215,6 @@ void wilc_netdev_cleanup(struct wilc *wilc);
|
|||||||
int wilc_netdev_init(struct wilc **wilc, struct device *dev, int io_type,
|
int wilc_netdev_init(struct wilc **wilc, struct device *dev, int io_type,
|
||||||
const struct wilc_hif_func *ops);
|
const struct wilc_hif_func *ops);
|
||||||
void wilc_wfi_mgmt_rx(struct wilc *wilc, u8 *buff, u32 size);
|
void wilc_wfi_mgmt_rx(struct wilc *wilc, u8 *buff, u32 size);
|
||||||
int wilc_wlan_set_bssid(struct net_device *wilc_netdev, u8 *bssid, u8 mode);
|
void wilc_wlan_set_bssid(struct net_device *wilc_netdev, u8 *bssid, u8 mode);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user