Skip to content

Commit

Permalink
Apply AP mode patch from @groove-max in issue #52
Browse files Browse the repository at this point in the history
  • Loading branch information
al177 committed Mar 6, 2023
1 parent f4bbb45 commit 0f61a8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dkms.conf
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions esp_mac80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,15 +488,15 @@ 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
evif->beacon_timer.expires = init_jiffies + msecs_to_jiffies(cycle_beacon_count * evif->beacon_interval*1024/1000);
#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
Expand Down

0 comments on commit 0f61a8d

Please sign in to comment.