Skip to content

Commit

Permalink
mac80211: fix 5.18/5.19 brcm patch
Browse files Browse the repository at this point in the history
  • Loading branch information
coolsnowwolf committed Aug 12, 2022
1 parent e9a1002 commit 084bf63
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ index 44a11b0..178e692 100644
ndev->ethtool_ops = &brcmf_ethtool_ops;

/* set the mac address & netns */
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0)
memcpy(ndev->dev_addr, ifp->mac_addr, ETH_ALEN);
+#else
+ eth_hw_addr_set(ifp->ndev, ifp->mac_addr);
Expand Down Expand Up @@ -117,7 +117,7 @@ index 57aa863..f5ebb5a 100644
local->hw.wiphy->perm_addr,
ETH_ALEN);
+#else
+ eth_hw_addr_set(ndev, params->macaddr);
+ eth_hw_addr_set(dev, local->hw.wiphy->perm_addr);
+#endif
memcpy(dev->perm_addr, dev->dev_addr, ETH_ALEN);

Expand Down

0 comments on commit 084bf63

Please sign in to comment.