Skip to content

Commit a9d210c

Browse files
committed
Merge branch 'bugfix/compilation_issue_change_beacon' into 'master'
esp_hosted_ng: fix build with linux kernel version >= 6.7.0 See merge request app-frameworks/esp_hosted!459
2 parents df2eb55 + e027769 commit a9d210c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

esp_hosted_ng/host/esp_cfg80211.c

+7-1
Original file line numberDiff line numberDiff line change
@@ -769,10 +769,16 @@ static int esp_set_ies(struct esp_wifi_device *priv, struct cfg80211_beacon_data
769769
return ret;
770770
}
771771

772+
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 7, 0))
773+
static int esp_cfg80211_change_beacon(struct wiphy *wiphy, struct net_device *ndev,
774+
struct cfg80211_ap_update *params)
775+
{
776+
struct cfg80211_beacon_data *info = &params->beacon;
777+
#else
772778
static int esp_cfg80211_change_beacon(struct wiphy *wiphy, struct net_device *ndev,
773779
struct cfg80211_beacon_data *info)
774-
775780
{
781+
#endif
776782
struct esp_wifi_device *priv = NULL;
777783

778784
if (!wiphy || !ndev) {

0 commit comments

Comments
 (0)