Skip to content

Commit

Permalink
fix 8723
Browse files Browse the repository at this point in the history
  • Loading branch information
devbis committed Nov 19, 2024
1 parent 2c8f16b commit 4cd3f26
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 11 deletions.
8 changes: 4 additions & 4 deletions package/kernel/rtl8723bs-ol/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ PKG_RELEASE=1
PKG_LICENSE:=GPLv2
PKG_LICENSE_FILES:=

PKG_SOURCE_URL:=https://github.com/openlumi/rtl8822bs-aml.git
PKG_MIRROR_HASH:=skip
PKG_SOURCE_URL:=https://github.com/openlumi/rtl8723bs.git
PKG_MIRROR_HASH:=ea8c042faf5488f1b1cd0df774a44f62cad5e677d573f464596bf2a9d1fc2567
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2023-05-08
PKG_SOURCE_VERSION:=4754406f9304959fc0dd1602be1c74eb940bd3c0
PKG_SOURCE_DATE:=2023-06-13
PKG_SOURCE_VERSION:=04a0bd2edd1ca95b30f8ff47f59624e1277fadf1

PKG_MAINTAINER:=Ivan Belokobylskiy <[email protected]>
PKG_BUILD_PARALLEL:=1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ of the byteorder headers.
--- a/include/drv_types.h
+++ b/include/drv_types.h
@@ -25,7 +25,7 @@
#include "drv_conf.h"
#include "basic_types.h"
#include "osdep_service.h"
-#include "rtw_byteorder.h"
#include <drv_conf.h>
#include <basic_types.h>
#include <osdep_service.h>
-#include <rtw_byteorder.h>
+#include <asm/byteorder.h>
#include "wlan_bssdef.h"
#include "wifi.h"
#include "ieee80211.h"
#include <wlan_bssdef.h>
#include <wifi.h>
#include <ieee80211.h>
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
--- a/os_dep/linux/ioctl_cfg80211.c
+++ b/os_dep/linux/ioctl_cfg80211.c
@@ -4020,6 +4020,18 @@ static int cfg80211_rtw_start_ap(struct
return ret;
}

+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6,7,0))|| defined(BUILD_OPENWRT)
+static int cfg80211_rtw_change_beacon(struct wiphy *wiphy, struct net_device *ndev,
+ struct cfg80211_ap_update *info)
+{
+ int ret = 0;
+ _adapter *adapter = (_adapter *)rtw_netdev_priv(ndev);
+
+ RTW_INFO(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
+
+ ret = rtw_add_beacon(adapter, info->beacon.head, info->beacon.head_len,
+ info->beacon.tail, info->beacon.tail_len);
+#else
static int cfg80211_rtw_change_beacon(struct wiphy *wiphy, struct net_device *ndev,
struct cfg80211_beacon_data *info)
{
@@ -4029,6 +4041,7 @@ static int cfg80211_rtw_change_beacon(st
RTW_INFO(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));

ret = rtw_add_beacon(adapter, info->head, info->head_len, info->tail, info->tail_len);
+#endif

return ret;
}

0 comments on commit 4cd3f26

Please sign in to comment.