From 0f61a8d29368d988fe0254d79474246ca39e997e Mon Sep 17 00:00:00 2001 From: Andrew Litt Date: Mon, 6 Mar 2023 14:49:31 -0600 Subject: [PATCH] Apply AP mode patch from @groove-max in issue #52 --- dkms.conf | 2 +- esp_mac80211.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dkms.conf b/dkms.conf index b04fcde..52d7225 100644 --- a/dkms.conf +++ b/dkms.conf @@ -1,5 +1,5 @@ PACKAGE_NAME="esp8089" -PACKAGE_VERSION="1.9.20220717" +PACKAGE_VERSION="1.9.20230306" CLEAN="make clean" BUILT_MODULE_NAME[0]="esp8089" DEST_MODULE_LOCATION="/updates" diff --git a/esp_mac80211.c b/esp_mac80211.c index 960d80c..b5dca6e 100755 --- a/esp_mac80211.c +++ b/esp_mac80211.c @@ -488,6 +488,8 @@ static void init_beacon_timer(struct ieee80211_vif *vif) ESP_IEEE80211_DBG(ESP_DBG_OP, " %s enter: beacon interval %x\n", __func__, evif->beacon_interval); beacon_tim_init(); + cycle_beacon_count = 1; + init_jiffies = jiffies; #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 28)) evif->beacon_timer.expires = init_jiffies + msecs_to_jiffies(cycle_beacon_count * vif->bss_conf.beacon_int*1024/1000); #else @@ -495,8 +497,6 @@ static void init_beacon_timer(struct ieee80211_vif *vif) #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0) init_timer(&evif->beacon_timer); //TBD, not init here... - cycle_beacon_count = 1; - init_jiffies = jiffies; evif->beacon_timer.data = (unsigned long) vif; evif->beacon_timer.function = drv_handle_beacon; #else