0005-Fix-cast-warnings.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From ebd083223883d479b2dd6f8a0da272797f90d236 Mon Sep 17 00:00:00 2001
  2. From: Giulio Benetti <giulio.benetti@benettiengineering.com>
  3. Date: Sat, 31 Dec 2022 18:38:33 +0100
  4. Subject: [PATCH] Fix cast warnings
  5. Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
  6. ---
  7. cfg80211.c | 2 +-
  8. netdev.c | 4 ++--
  9. 2 files changed, 3 insertions(+), 3 deletions(-)
  10. diff --git a/cfg80211.c b/cfg80211.c
  11. index 016aa06..2f40c9d 100644
  12. --- a/cfg80211.c
  13. +++ b/cfg80211.c
  14. @@ -1794,7 +1794,7 @@ static int start_ap(struct wiphy *wiphy, struct net_device *dev,
  15. if (ret != 0)
  16. netdev_err(dev, "Error in setting channel\n");
  17. - wilc_wlan_set_bssid(dev, dev->dev_addr, WILC_AP_MODE);
  18. + wilc_wlan_set_bssid(dev, (u8 *)dev->dev_addr, WILC_AP_MODE);
  19. return wilc_add_beacon(vif, settings->beacon_interval,
  20. settings->dtim_period, &settings->beacon);
  21. diff --git a/netdev.c b/netdev.c
  22. index 824afea..5a1a51d 100644
  23. --- a/netdev.c
  24. +++ b/netdev.c
  25. @@ -899,9 +899,9 @@ static int wilc_mac_open(struct net_device *ndev)
  26. vif->idx);
  27. if (is_valid_ether_addr(ndev->dev_addr))
  28. - wilc_set_mac_address(vif, ndev->dev_addr);
  29. + wilc_set_mac_address(vif, (u8 *)ndev->dev_addr);
  30. else
  31. - wilc_get_mac_address(vif, ndev->dev_addr);
  32. + wilc_get_mac_address(vif, (u8 *)ndev->dev_addr);
  33. netdev_dbg(ndev, "Mac address: %pM\n", ndev->dev_addr);
  34. if (!is_valid_ether_addr(ndev->dev_addr)) {
  35. --
  36. 2.34.1