mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-11-03 20:07:59 +00:00 
			
		
		
		
	Compare commits
	
		
			18 Commits
		
	
	
		
			v3.0.0-rc3
			...
			v3.0.1
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					14aa04ad10 | ||
| 
						 | 
					589cdf6795 | ||
| 
						 | 
					d5ffdffd8c | ||
| 
						 | 
					a14df28bd6 | ||
| 
						 | 
					25bec55d4a | ||
| 
						 | 
					575686449a | ||
| 
						 | 
					a849ad6e39 | ||
| 
						 | 
					de834a7d07 | ||
| 
						 | 
					d8fd2b8f39 | ||
| 
						 | 
					e1745cae9b | ||
| 
						 | 
					bfa3b829ee | ||
| 
						 | 
					91dacf0e93 | ||
| 
						 | 
					c0dcc4aea2 | ||
| 
						 | 
					c97ac2da72 | ||
| 
						 | 
					f21fa9ab80 | ||
| 
						 | 
					9305bc609b | ||
| 
						 | 
					6d81e1e587 | ||
| 
						 | 
					0c55b1f97a | 
@@ -133,7 +133,7 @@ qcom_setup_interfaces()
 | 
				
			|||||||
		ucidef_set_interface_lan ""
 | 
							ucidef_set_interface_lan ""
 | 
				
			||||||
		;;
 | 
							;;
 | 
				
			||||||
	cybertan,eww631-b1)
 | 
						cybertan,eww631-b1)
 | 
				
			||||||
		ucidef_add_switch "switch1" "5:wan" "2:lan" "3:lan" "4:lan" "6@eth0"
 | 
							ucidef_add_switch "switch1" "5:wan" "4:lan" "3:lan" "2:lan" "6@eth0"
 | 
				
			||||||
		;;
 | 
							;;
 | 
				
			||||||
	wallys,dr5018)
 | 
						wallys,dr5018)
 | 
				
			||||||
                ucidef_set_interface_lan "eth0 eth1"
 | 
					                ucidef_set_interface_lan "eth0 eth1"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -134,6 +134,11 @@ $(call Package/ath11k-wifi-default)
 | 
				
			|||||||
    TITLE:=hfcl-ion4xi bdf
 | 
					    TITLE:=hfcl-ion4xi bdf
 | 
				
			||||||
endef
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					define Package/ath11k-wifi-hfcl-ion4xe
 | 
				
			||||||
 | 
					$(call Package/ath11k-wifi-default)
 | 
				
			||||||
 | 
					    TITLE:=hfcl-ion4xe bdf
 | 
				
			||||||
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
define Package/ath11k-wifi-hfcl-ion4xi_w
 | 
					define Package/ath11k-wifi-hfcl-ion4xi_w
 | 
				
			||||||
$(call Package/ath11k-wifi-default)
 | 
					$(call Package/ath11k-wifi-default)
 | 
				
			||||||
    TITLE:=hfcl-ion4xi_w bdf
 | 
					    TITLE:=hfcl-ion4xi_w bdf
 | 
				
			||||||
@@ -315,6 +320,11 @@ define Package/ath11k-wifi-hfcl-ion4xi/install
 | 
				
			|||||||
	$(INSTALL_DATA) ./board-hfcl-ion4xi.bin.IPQ6018 $(1)/lib/firmware/ath11k/IPQ6018/hw1.0/board-2.bin
 | 
						$(INSTALL_DATA) ./board-hfcl-ion4xi.bin.IPQ6018 $(1)/lib/firmware/ath11k/IPQ6018/hw1.0/board-2.bin
 | 
				
			||||||
endef
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					define Package/ath11k-wifi-hfcl-ion4xe/install
 | 
				
			||||||
 | 
						$(INSTALL_DIR) $(1)/lib/firmware/ath11k/IPQ6018/hw1.0/
 | 
				
			||||||
 | 
						$(INSTALL_DATA) ./board-hfcl-ion4xe.bin.IPQ6018 $(1)/lib/firmware/ath11k/IPQ6018/hw1.0/board-2.bin
 | 
				
			||||||
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
define Package/ath11k-wifi-hfcl-ion4xi_wp/install
 | 
					define Package/ath11k-wifi-hfcl-ion4xi_wp/install
 | 
				
			||||||
	$(INSTALL_DIR) $(1)/lib/firmware/ath11k/IPQ6018/hw1.0/
 | 
						$(INSTALL_DIR) $(1)/lib/firmware/ath11k/IPQ6018/hw1.0/
 | 
				
			||||||
	$(INSTALL_DATA) ./board-hfcl-ion4xi_wp.bin.IPQ6018 $(1)/lib/firmware/ath11k/IPQ6018/hw1.0/board.bin
 | 
						$(INSTALL_DATA) ./board-hfcl-ion4xi_wp.bin.IPQ6018 $(1)/lib/firmware/ath11k/IPQ6018/hw1.0/board.bin
 | 
				
			||||||
@@ -406,6 +416,7 @@ $(eval $(call BuildPackage,ath11k-wifi-motorola-q14))
 | 
				
			|||||||
$(eval $(call BuildPackage,ath11k-wifi-optimcloud-d50))
 | 
					$(eval $(call BuildPackage,ath11k-wifi-optimcloud-d50))
 | 
				
			||||||
$(eval $(call BuildPackage,ath11k-wifi-optimcloud-d60))
 | 
					$(eval $(call BuildPackage,ath11k-wifi-optimcloud-d60))
 | 
				
			||||||
$(eval $(call BuildPackage,ath11k-wifi-hfcl-ion4xi))
 | 
					$(eval $(call BuildPackage,ath11k-wifi-hfcl-ion4xi))
 | 
				
			||||||
 | 
					$(eval $(call BuildPackage,ath11k-wifi-hfcl-ion4xe))
 | 
				
			||||||
$(eval $(call BuildPackage,ath11k-wifi-hfcl-ion4xi_wp))
 | 
					$(eval $(call BuildPackage,ath11k-wifi-hfcl-ion4xi_wp))
 | 
				
			||||||
$(eval $(call BuildPackage,ath11k-wifi-hfcl-ion4xi_w))
 | 
					$(eval $(call BuildPackage,ath11k-wifi-hfcl-ion4xi_w))
 | 
				
			||||||
$(eval $(call BuildPackage,ath11k-wifi-hfcl-ion4x_w))
 | 
					$(eval $(call BuildPackage,ath11k-wifi-hfcl-ion4x_w))
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								feeds/ipq807x_v5.4/ath11k-wifi/board-hfcl-ion4xe.bin.IPQ6018
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								feeds/ipq807x_v5.4/ath11k-wifi/board-hfcl-ion4xe.bin.IPQ6018
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							@@ -1958,6 +1958,9 @@ void hostapd_ubus_notify_radar_detected(struct hostapd_iface *iface, int frequen
 | 
				
			|||||||
	struct hostapd_data *hapd;
 | 
						struct hostapd_data *hapd;
 | 
				
			||||||
	int i;
 | 
						int i;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (!ctx)
 | 
				
			||||||
 | 
							return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	blob_buf_init(&b, 0);
 | 
						blob_buf_init(&b, 0);
 | 
				
			||||||
	blobmsg_add_u16(&b, "frequency", frequency);
 | 
						blobmsg_add_u16(&b, "frequency", frequency);
 | 
				
			||||||
	blobmsg_add_u16(&b, "width", chan_width);
 | 
						blobmsg_add_u16(&b, "width", chan_width);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -20,7 +20,7 @@ DEFAULT_PACKAGES += kmod-qca-nss-dp kmod-qca-ssdk swconfig \
 | 
				
			|||||||
	kmod-usb-phy-ipq5018 kmod-usb-dwc3-qcom-internal \
 | 
						kmod-usb-phy-ipq5018 kmod-usb-dwc3-qcom-internal \
 | 
				
			||||||
	kmod-ath11k-ahb  ath11k-firmware-ipq5018 \
 | 
						kmod-ath11k-ahb  ath11k-firmware-ipq5018 \
 | 
				
			||||||
	kmod-gpio-button-hotplug iwinfo \
 | 
						kmod-gpio-button-hotplug iwinfo \
 | 
				
			||||||
	qca-ssdk-shell \
 | 
						qca-ssdk-shell kmod-bootconfig \
 | 
				
			||||||
	uboot-envtools -procd-ujail
 | 
						uboot-envtools -procd-ujail
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$(eval $(call BuildTarget))
 | 
					$(eval $(call BuildTarget))
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -340,7 +340,7 @@
 | 
				
			|||||||
			status = "ok";
 | 
								status = "ok";
 | 
				
			||||||
			pinctrl-0 = <&mdio1_pins>;
 | 
								pinctrl-0 = <&mdio1_pins>;
 | 
				
			||||||
			pinctrl-names = "default";
 | 
								pinctrl-names = "default";
 | 
				
			||||||
			phy-reset-gpio = <&tlmm 39 0>;
 | 
								phy-reset-gpio = <&tlmm 16 0>;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			ethernet-phy@0 {
 | 
								ethernet-phy@0 {
 | 
				
			||||||
				reg = <0x00>;
 | 
									reg = <0x00>;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -51,3 +51,17 @@ define KernelPackage/tpm-tis-i2c/description
 | 
				
			|||||||
  within Linux.
 | 
					  within Linux.
 | 
				
			||||||
endef
 | 
					endef
 | 
				
			||||||
$(eval $(call KernelPackage,tpm-tis-i2c))
 | 
					$(eval $(call KernelPackage,tpm-tis-i2c))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					define KernelPackage/bootconfig
 | 
				
			||||||
 | 
					  SUBMENU:=Other modules
 | 
				
			||||||
 | 
					  TITLE:=Bootconfig partition for failsafe
 | 
				
			||||||
 | 
					  KCONFIG:=CONFIG_BOOTCONFIG_PARTITION
 | 
				
			||||||
 | 
					  FILES:=$(LINUX_DIR)/drivers/platform/ipq/bootconfig.ko@ge4.4
 | 
				
			||||||
 | 
					  AUTOLOAD:=$(call AutoLoad,56,bootconfig,1)
 | 
				
			||||||
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					define KernelPackage/bootconfig/description
 | 
				
			||||||
 | 
					  Bootconfig partition for failsafe
 | 
				
			||||||
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					$(eval $(call KernelPackage,bootconfig))
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										13
									
								
								feeds/ipq807x_v5.4/ipq50xx/patches/300-bootconfig.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								feeds/ipq807x_v5.4/ipq50xx/patches/300-bootconfig.patch
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					Index: linux-5.4.164-qsdk-26349818b464f8c7b52d59ce73579d9f3dd6bd5d/drivers/platform/ipq/bootconfig.c
 | 
				
			||||||
 | 
					===================================================================
 | 
				
			||||||
 | 
					--- linux-5.4.164-qsdk-26349818b464f8c7b52d59ce73579d9f3dd6bd5d.orig/drivers/platform/ipq/bootconfig.c
 | 
				
			||||||
 | 
					+++ linux-5.4.164-qsdk-26349818b464f8c7b52d59ce73579d9f3dd6bd5d/drivers/platform/ipq/bootconfig.c
 | 
				
			||||||
 | 
					@@ -366,7 +366,7 @@ static int __init bootconfig_partition_i
 | 
				
			||||||
 | 
					 			continue;
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					 		partname_dir[i] = proc_mkdir(part_info[i].name, boot_info_dir);
 | 
				
			||||||
 | 
					-		if (partname_dir != NULL) {
 | 
				
			||||||
 | 
					+		if (partname_dir[i] != NULL) {
 | 
				
			||||||
 | 
					 			proc_create_data("primaryboot", S_IRUGO,
 | 
				
			||||||
 | 
					 					   partname_dir[i],
 | 
				
			||||||
 | 
					 					   &primaryboot_ops,
 | 
				
			||||||
@@ -20,7 +20,7 @@ DEFAULT_PACKAGES += kmod-qca-nss-dp kmod-qca-ssdk swconfig \
 | 
				
			|||||||
	kmod-usb-phy-ipq807x kmod-usb-dwc3-qcom-internal \
 | 
						kmod-usb-phy-ipq807x kmod-usb-dwc3-qcom-internal \
 | 
				
			||||||
	kmod-ath11k-ahb  ath11k-firmware-ipq60xx \
 | 
						kmod-ath11k-ahb  ath11k-firmware-ipq60xx \
 | 
				
			||||||
	kmod-gpio-button-hotplug iwinfo \
 | 
						kmod-gpio-button-hotplug iwinfo \
 | 
				
			||||||
	qca-ssdk-shell \
 | 
						qca-ssdk-shell kmod-bootconfig \
 | 
				
			||||||
	uboot-envtools -procd-ujail
 | 
						uboot-envtools -procd-ujail
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$(eval $(call BuildTarget))
 | 
					$(eval $(call BuildTarget))
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,7 +25,7 @@ define Device/hfcl_ion4xe
 | 
				
			|||||||
  DEVICE_DTS := qcom-ipq6018-hfcl-ion4xe
 | 
					  DEVICE_DTS := qcom-ipq6018-hfcl-ion4xe
 | 
				
			||||||
  DEVICE_DTS_CONFIG := config@cp01-c1
 | 
					  DEVICE_DTS_CONFIG := config@cp01-c1
 | 
				
			||||||
  SUPPORTED_DEVICES := hfcl,ion4xe
 | 
					  SUPPORTED_DEVICES := hfcl,ion4xe
 | 
				
			||||||
  DEVICE_PACKAGES := ath11k-wifi-qcom-ipq6018 uboot-envtools kmod-hwmon-lm75
 | 
					  DEVICE_PACKAGES := ath11k-wifi-hfcl-ion4xe uboot-envtools kmod-hwmon-lm75
 | 
				
			||||||
endef
 | 
					endef
 | 
				
			||||||
TARGET_DEVICES += hfcl_ion4xe
 | 
					TARGET_DEVICES += hfcl_ion4xe
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -76,3 +76,17 @@ define KernelPackage/usb-dwc3-qcom-internal/description
 | 
				
			|||||||
endef
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$(eval $(call KernelPackage,usb-dwc3-qcom-internal))
 | 
					$(eval $(call KernelPackage,usb-dwc3-qcom-internal))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					define KernelPackage/bootconfig
 | 
				
			||||||
 | 
					  SUBMENU:=Other modules
 | 
				
			||||||
 | 
					  TITLE:=Bootconfig partition for failsafe
 | 
				
			||||||
 | 
					  KCONFIG:=CONFIG_BOOTCONFIG_PARTITION
 | 
				
			||||||
 | 
					  FILES:=$(LINUX_DIR)/drivers/platform/ipq/bootconfig.ko@ge4.4
 | 
				
			||||||
 | 
					  AUTOLOAD:=$(call AutoLoad,56,bootconfig,1)
 | 
				
			||||||
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					define KernelPackage/bootconfig/description
 | 
				
			||||||
 | 
					  Bootconfig partition for failsafe
 | 
				
			||||||
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					$(eval $(call KernelPackage,bootconfig))
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										13
									
								
								feeds/ipq807x_v5.4/ipq60xx/patches/300-bootconfig.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								feeds/ipq807x_v5.4/ipq60xx/patches/300-bootconfig.patch
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					Index: linux-5.4.164-qsdk-26349818b464f8c7b52d59ce73579d9f3dd6bd5d/drivers/platform/ipq/bootconfig.c
 | 
				
			||||||
 | 
					===================================================================
 | 
				
			||||||
 | 
					--- linux-5.4.164-qsdk-26349818b464f8c7b52d59ce73579d9f3dd6bd5d.orig/drivers/platform/ipq/bootconfig.c
 | 
				
			||||||
 | 
					+++ linux-5.4.164-qsdk-26349818b464f8c7b52d59ce73579d9f3dd6bd5d/drivers/platform/ipq/bootconfig.c
 | 
				
			||||||
 | 
					@@ -366,7 +366,7 @@ static int __init bootconfig_partition_i
 | 
				
			||||||
 | 
					 			continue;
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					 		partname_dir[i] = proc_mkdir(part_info[i].name, boot_info_dir);
 | 
				
			||||||
 | 
					-		if (partname_dir != NULL) {
 | 
				
			||||||
 | 
					+		if (partname_dir[i] != NULL) {
 | 
				
			||||||
 | 
					 			proc_create_data("primaryboot", S_IRUGO,
 | 
				
			||||||
 | 
					 					   partname_dir[i],
 | 
				
			||||||
 | 
					 					   &primaryboot_ops,
 | 
				
			||||||
@@ -20,7 +20,7 @@ DEFAULT_PACKAGES += kmod-qca-nss-dp kmod-qca-ssdk swconfig \
 | 
				
			|||||||
	kmod-usb-phy-ipq807x kmod-usb-dwc3-qcom-internal \
 | 
						kmod-usb-phy-ipq807x kmod-usb-dwc3-qcom-internal \
 | 
				
			||||||
	kmod-ath11k-ahb ath11k-firmware-ipq807x \
 | 
						kmod-ath11k-ahb ath11k-firmware-ipq807x \
 | 
				
			||||||
	kmod-gpio-button-hotplug iwinfo \
 | 
						kmod-gpio-button-hotplug iwinfo \
 | 
				
			||||||
	qca-ssdk-shell \
 | 
						qca-ssdk-shell kmod-bootconfig \
 | 
				
			||||||
	uboot-envtools -procd-ujail
 | 
						uboot-envtools -procd-ujail
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$(eval $(call BuildTarget))
 | 
					$(eval $(call BuildTarget))
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -56,4 +56,16 @@ endef
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
$(eval $(call KernelPackage,diag-char))
 | 
					$(eval $(call KernelPackage,diag-char))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					define KernelPackage/bootconfig
 | 
				
			||||||
 | 
					  SUBMENU:=Other modules
 | 
				
			||||||
 | 
					  TITLE:=Bootconfig partition for failsafe
 | 
				
			||||||
 | 
					  KCONFIG:=CONFIG_BOOTCONFIG_PARTITION
 | 
				
			||||||
 | 
					  FILES:=$(LINUX_DIR)/drivers/platform/ipq/bootconfig.ko@ge4.4
 | 
				
			||||||
 | 
					  AUTOLOAD:=$(call AutoLoad,56,bootconfig,1)
 | 
				
			||||||
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					define KernelPackage/bootconfig/description
 | 
				
			||||||
 | 
					  Bootconfig partition for failsafe
 | 
				
			||||||
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					$(eval $(call KernelPackage,bootconfig))
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										13
									
								
								feeds/ipq807x_v5.4/ipq807x/patches/300-bootconfig.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								feeds/ipq807x_v5.4/ipq807x/patches/300-bootconfig.patch
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					Index: linux-5.4.164-qsdk-26349818b464f8c7b52d59ce73579d9f3dd6bd5d/drivers/platform/ipq/bootconfig.c
 | 
				
			||||||
 | 
					===================================================================
 | 
				
			||||||
 | 
					--- linux-5.4.164-qsdk-26349818b464f8c7b52d59ce73579d9f3dd6bd5d.orig/drivers/platform/ipq/bootconfig.c
 | 
				
			||||||
 | 
					+++ linux-5.4.164-qsdk-26349818b464f8c7b52d59ce73579d9f3dd6bd5d/drivers/platform/ipq/bootconfig.c
 | 
				
			||||||
 | 
					@@ -366,7 +366,7 @@ static int __init bootconfig_partition_i
 | 
				
			||||||
 | 
					 			continue;
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					 		partname_dir[i] = proc_mkdir(part_info[i].name, boot_info_dir);
 | 
				
			||||||
 | 
					-		if (partname_dir != NULL) {
 | 
				
			||||||
 | 
					+		if (partname_dir[i] != NULL) {
 | 
				
			||||||
 | 
					 			proc_create_data("primaryboot", S_IRUGO,
 | 
				
			||||||
 | 
					 					   partname_dir[i],
 | 
				
			||||||
 | 
					 					   &primaryboot_ops,
 | 
				
			||||||
@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					--- a/net/mac80211/sta_info.c
 | 
				
			||||||
 | 
					+++ b/net/mac80211/sta_info.c
 | 
				
			||||||
 | 
					@@ -2157,7 +2157,7 @@ static void sta_stats_decode_rate(struct
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					 		sband = local->hw.wiphy->bands[band];
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					-		if (WARN_ON_ONCE(!sband->bitrates))
 | 
				
			||||||
 | 
					+		if (WARN_ON_ONCE(!sband || !sband->bitrates))
 | 
				
			||||||
 | 
					 			break;
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					 		brate = sband->bitrates[rate_idx].bitrate;
 | 
				
			||||||
@@ -1892,6 +1892,9 @@ void hostapd_ubus_notify_radar_detected(struct hostapd_iface *iface, int frequen
 | 
				
			|||||||
	struct hostapd_data *hapd;
 | 
						struct hostapd_data *hapd;
 | 
				
			||||||
	int i;
 | 
						int i;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (!ctx)
 | 
				
			||||||
 | 
							return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	blob_buf_init(&b, 0);
 | 
						blob_buf_init(&b, 0);
 | 
				
			||||||
	blobmsg_add_u16(&b, "frequency", frequency);
 | 
						blobmsg_add_u16(&b, "frequency", frequency);
 | 
				
			||||||
	blobmsg_add_u16(&b, "width", chan_width);
 | 
						blobmsg_add_u16(&b, "width", chan_width);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,8 +29,9 @@ function station_add(device, addr, data, seen, bssid) {
 | 
				
			|||||||
			beacon_report: {},
 | 
								beacon_report: {},
 | 
				
			||||||
		};
 | 
							};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (config.beacon_request_assoc)
 | 
						/*	if (config.beacon_request_assoc)
 | 
				
			||||||
			stations[addr].beacon_request_assoc = time();
 | 
								stations[addr].beacon_request_assoc = time();
 | 
				
			||||||
 | 
						*/
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* update device, seen and signal data */
 | 
						/* update device, seen and signal data */
 | 
				
			||||||
@@ -47,6 +48,7 @@ function station_add(device, addr, data, seen, bssid) {
 | 
				
			|||||||
		global.event.send('rrm.station.add', { addr, rrm: stations[addr].rrm, bssid });
 | 
							global.event.send('rrm.station.add', { addr, rrm: stations[addr].rrm, bssid });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* check if a beacon_report should be triggered */
 | 
						/* check if a beacon_report should be triggered */
 | 
				
			||||||
 | 
						/*
 | 
				
			||||||
	if (stations[addr].beacon_request_assoc && time() - stations[addr].beacon_request_assoc >= 30) {
 | 
						if (stations[addr].beacon_request_assoc && time() - stations[addr].beacon_request_assoc >= 30) {
 | 
				
			||||||
		global.station.beacon_request({ addr, channel: stations[addr].channel});
 | 
							global.station.beacon_request({ addr, channel: stations[addr].channel});
 | 
				
			||||||
		stations[addr].beacon_request_assoc = 0;	
 | 
							stations[addr].beacon_request_assoc = 0;	
 | 
				
			||||||
@@ -56,6 +58,7 @@ function station_add(device, addr, data, seen, bssid) {
 | 
				
			|||||||
		global.event.send('rrm.beacon.report', { addr, report: stations[addr].beacon_report });
 | 
							global.event.send('rrm.beacon.report', { addr, report: stations[addr].beacon_report });
 | 
				
			||||||
		stations[addr].beacon_report_seen = 0;
 | 
							stations[addr].beacon_report_seen = 0;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						*/
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function station_del(addr) {
 | 
					function station_del(addr) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,10 +4,10 @@ PKG_NAME:=ucentral-client
 | 
				
			|||||||
PKG_RELEASE:=1
 | 
					PKG_RELEASE:=1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PKG_SOURCE_URL=https://github.com/Telecominfraproject/wlan-ucentral-client.git
 | 
					PKG_SOURCE_URL=https://github.com/Telecominfraproject/wlan-ucentral-client.git
 | 
				
			||||||
PKG_MIRROR_HASH:=279c58711c354372d570320651644bf75ce758c6197a7eb8dda481a925c82620
 | 
					PKG_MIRROR_HASH:=3fa810edd53a8c08ce3d8090a095fbc1697c70c50e00a78931400df59fe66eaf
 | 
				
			||||||
PKG_SOURCE_PROTO:=git
 | 
					PKG_SOURCE_PROTO:=git
 | 
				
			||||||
PKG_SOURCE_DATE:=2022-06-22
 | 
					PKG_SOURCE_DATE:=2022-06-22
 | 
				
			||||||
PKG_SOURCE_VERSION:=6ca7b2e43c20a92508bf408e586c310dfff38f51
 | 
					PKG_SOURCE_VERSION:=f19b1e86b7f36f4adc544e087cadd7907dabb5f0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PKG_LICENSE:=BSD-3-Clause
 | 
					PKG_LICENSE:=BSD-3-Clause
 | 
				
			||||||
PKG_MAINTAINER:=John Crispin <john@phrozen.org>
 | 
					PKG_MAINTAINER:=John Crispin <john@phrozen.org>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -126,7 +126,8 @@ handlers = {
 | 
				
			|||||||
			vlan: [ `${notify.data.vlan_id}:u` ]  
 | 
								vlan: [ `${notify.data.vlan_id}:u` ]  
 | 
				
			||||||
		};                                          
 | 
							};                                          
 | 
				
			||||||
		ubus.call('network.interface.up_none', 'add_device', msg);          
 | 
							ubus.call('network.interface.up_none', 'add_device', msg);          
 | 
				
			||||||
 | 
							if (`${notify.data.vlan_id}` in config.config.swconfig_vlans)            
 | 
				
			||||||
 | 
					                        return;          
 | 
				
			||||||
		msg = {                          
 | 
							msg = {                          
 | 
				
			||||||
			name: 'eth0.' + notify.data.vlan_id,
 | 
								name: 'eth0.' + notify.data.vlan_id,
 | 
				
			||||||
			vlan: [ `${notify.data.vlan_id}:u` ]
 | 
								vlan: [ `${notify.data.vlan_id}:u` ]
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,10 +4,10 @@ PKG_NAME:=ucentral-schema
 | 
				
			|||||||
PKG_RELEASE:=1
 | 
					PKG_RELEASE:=1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PKG_SOURCE_URL=https://github.com/Telecominfraproject/wlan-ucentral-schema.git
 | 
					PKG_SOURCE_URL=https://github.com/Telecominfraproject/wlan-ucentral-schema.git
 | 
				
			||||||
PKG_MIRROR_HASH:=8558ddc1b975a9b0bf1832c3277a99de95e9cf3682a671991d3125c04d375e96
 | 
					PKG_MIRROR_HASH:=8ab9a9361415e0302c502d1e92273b4b8098bca5e469783b6813d47b284ed965
 | 
				
			||||||
PKG_SOURCE_PROTO:=git
 | 
					PKG_SOURCE_PROTO:=git
 | 
				
			||||||
PKG_SOURCE_DATE:=2022-05-29
 | 
					PKG_SOURCE_DATE:=2022-05-29
 | 
				
			||||||
PKG_SOURCE_VERSION:=e77cd3fa1ea727cbdfc64f78aff2401a869edc27
 | 
					PKG_SOURCE_VERSION:=3093a565c4c28609089ac03a4c206fae0c89cb49
 | 
				
			||||||
PKG_MAINTAINER:=John Crispin <john@phrozen.org>
 | 
					PKG_MAINTAINER:=John Crispin <john@phrozen.org>
 | 
				
			||||||
PKG_LICENSE:=BSD-3-Clause
 | 
					PKG_LICENSE:=BSD-3-Clause
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -147,9 +147,8 @@ let state_handler = {
 | 
				
			|||||||
		led_write(led, 'trigger', 'heartbeat');
 | 
							led_write(led, 'trigger', 'heartbeat');
 | 
				
			||||||
		if (config.ui.offline_trigger) {
 | 
							if (config.ui.offline_trigger) {
 | 
				
			||||||
			if (offline_timer)
 | 
								if (offline_timer)
 | 
				
			||||||
				offline_timer.set(config.ui.offline_trigger * 1000);
 | 
									offline_timer.cancel();
 | 
				
			||||||
			else
 | 
								offline_timer = uloop.timer(config.ui.offline_trigger * 1000, offline_handler);
 | 
				
			||||||
				offline_timer = uloop.timer(config.ui.offline_trigger * 1000, offline_handler);
 | 
					 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		return 0;
 | 
							return 0;
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1958,6 +1958,9 @@ void hostapd_ubus_notify_radar_detected(struct hostapd_iface *iface, int frequen
 | 
				
			|||||||
	struct hostapd_data *hapd;
 | 
						struct hostapd_data *hapd;
 | 
				
			||||||
	int i;
 | 
						int i;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (!ctx)
 | 
				
			||||||
 | 
							return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	blob_buf_init(&b, 0);
 | 
						blob_buf_init(&b, 0);
 | 
				
			||||||
	blobmsg_add_u16(&b, "frequency", frequency);
 | 
						blobmsg_add_u16(&b, "frequency", frequency);
 | 
				
			||||||
	blobmsg_add_u16(&b, "width", chan_width);
 | 
						blobmsg_add_u16(&b, "width", chan_width);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -0,0 +1,27 @@
 | 
				
			|||||||
 | 
					From 20bf17b6bb9c40a14db5ed9744c3362afe4a67d8 Mon Sep 17 00:00:00 2001
 | 
				
			||||||
 | 
					From: John Crispin <john@phrozen.org>
 | 
				
			||||||
 | 
					Date: Tue, 9 Jan 2024 12:36:01 +0100
 | 
				
			||||||
 | 
					Subject: [PATCH] hostapd: add missing NULL pointer check on radar notification
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Signed-off-by: John Crispin <john@phrozen.org>
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					 package/network/services/hostapd/src/src/ap/ubus.c | 3 +++
 | 
				
			||||||
 | 
					 1 file changed, 3 insertions(+)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					diff --git a/package/network/services/hostapd/src/src/ap/ubus.c b/package/network/services/hostapd/src/src/ap/ubus.c
 | 
				
			||||||
 | 
					index 52f83c50f7..54361ea460 100644
 | 
				
			||||||
 | 
					--- a/package/network/services/hostapd/src/src/ap/ubus.c
 | 
				
			||||||
 | 
					+++ b/package/network/services/hostapd/src/src/ap/ubus.c
 | 
				
			||||||
 | 
					@@ -2125,6 +2125,9 @@ void hostapd_ubus_notify_radar_detected(struct hostapd_iface *iface, int frequen
 | 
				
			||||||
 | 
					 	struct hostapd_data *hapd;
 | 
				
			||||||
 | 
					 	int i;
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					+	if (!ctx)
 | 
				
			||||||
 | 
					+		return;
 | 
				
			||||||
 | 
					+
 | 
				
			||||||
 | 
					 	blob_buf_init(&b, 0);
 | 
				
			||||||
 | 
					 	blobmsg_add_u16(&b, "frequency", frequency);
 | 
				
			||||||
 | 
					 	blobmsg_add_u16(&b, "width", chan_width);
 | 
				
			||||||
 | 
					-- 
 | 
				
			||||||
 | 
					2.34.1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -0,0 +1,30 @@
 | 
				
			|||||||
 | 
					From 66382792778a6647ec8809e3858e030b3bbf5554 Mon Sep 17 00:00:00 2001
 | 
				
			||||||
 | 
					From: John Crispin <john@phrozen.org>
 | 
				
			||||||
 | 
					Date: Mon, 15 Jan 2024 13:19:24 +0100
 | 
				
			||||||
 | 
					Subject: [PATCH] netifd: only reload swconfig if something changed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Signed-off-by: John Crispin <john@phrozen.org>
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					 package/network/config/netifd/files/etc/init.d/network | 6 +++++-
 | 
				
			||||||
 | 
					 1 file changed, 5 insertions(+), 1 deletion(-)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					diff --git a/package/network/config/netifd/files/etc/init.d/network b/package/network/config/netifd/files/etc/init.d/network
 | 
				
			||||||
 | 
					index dc208c4ce0..6af668f557 100755
 | 
				
			||||||
 | 
					--- a/package/network/config/netifd/files/etc/init.d/network
 | 
				
			||||||
 | 
					+++ b/package/network/config/netifd/files/etc/init.d/network
 | 
				
			||||||
 | 
					@@ -9,7 +9,11 @@ init_switch() {
 | 
				
			||||||
 | 
					 	setup_switch() { return 0; }
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					 	include /lib/network
 | 
				
			||||||
 | 
					-	setup_switch
 | 
				
			||||||
 | 
					+        uci show network | grep @switch | sort | md5sum | cut -d" " -f1 > /var/run/swconfig.new
 | 
				
			||||||
 | 
					+        [ "$(cat /var/run/swconfig.new)" != "$(cat /var/run/swconfig.applied)" ] && {
 | 
				
			||||||
 | 
					+                mv /var/run/swconfig.new /var/run/swconfig.applied
 | 
				
			||||||
 | 
					+                setup_switch
 | 
				
			||||||
 | 
					+        }
 | 
				
			||||||
 | 
					 }
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					 start_service() {
 | 
				
			||||||
 | 
					-- 
 | 
				
			||||||
 | 
					2.34.1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -0,0 +1,26 @@
 | 
				
			|||||||
 | 
					From 594261d2f696136b9cb1d63fd4706248b5cd9ffa Mon Sep 17 00:00:00 2001
 | 
				
			||||||
 | 
					From: John Crispin <john@phrozen.org>
 | 
				
			||||||
 | 
					Date: Wed, 17 Jan 2024 09:58:18 +0100
 | 
				
			||||||
 | 
					Subject: [PATCH] ramips: reduce yuncore ax820 SPI clock speed to 20MHz
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Signed-off-by: John Crispin <john@phrozen.org>
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					 target/linux/ramips/dts/mt7621_yuncore_ax820.dts | 2 +-
 | 
				
			||||||
 | 
					 1 file changed, 1 insertion(+), 1 deletion(-)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					diff --git a/target/linux/ramips/dts/mt7621_yuncore_ax820.dts b/target/linux/ramips/dts/mt7621_yuncore_ax820.dts
 | 
				
			||||||
 | 
					index 51fd358095..b2f55b9be0 100644
 | 
				
			||||||
 | 
					--- a/target/linux/ramips/dts/mt7621_yuncore_ax820.dts
 | 
				
			||||||
 | 
					+++ b/target/linux/ramips/dts/mt7621_yuncore_ax820.dts
 | 
				
			||||||
 | 
					@@ -87,7 +87,7 @@
 | 
				
			||||||
 | 
					 	flash@0 {
 | 
				
			||||||
 | 
					 		compatible = "jedec,spi-nor";
 | 
				
			||||||
 | 
					 		reg = <0>;
 | 
				
			||||||
 | 
					-		spi-max-frequency = <80000000>;
 | 
				
			||||||
 | 
					+		spi-max-frequency = <20000000>;
 | 
				
			||||||
 | 
					 		m25p,fast-read;
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					 		partitions {
 | 
				
			||||||
 | 
					-- 
 | 
				
			||||||
 | 
					2.34.1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							
								
								
									
										26
									
								
								patches/0076-rstrip.sh-do-not-strip-FW-binaries.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								patches/0076-rstrip.sh-do-not-strip-FW-binaries.patch
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
				
			|||||||
 | 
					From f8a801dee8bf0706e349f8f9a7ca1e1fb2fcd42a Mon Sep 17 00:00:00 2001
 | 
				
			||||||
 | 
					From: John Crispin <john@phrozen.org>
 | 
				
			||||||
 | 
					Date: Mon, 22 Jan 2024 12:21:02 +0100
 | 
				
			||||||
 | 
					Subject: [PATCH] rstrip.sh: do not strip FW binaries
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Signed-off-by: John Crispin <john@phrozen.org>
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					 scripts/rstrip.sh | 2 +-
 | 
				
			||||||
 | 
					 1 file changed, 1 insertion(+), 1 deletion(-)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					diff --git a/scripts/rstrip.sh b/scripts/rstrip.sh
 | 
				
			||||||
 | 
					index e47960a941..2aa7e96fda 100755
 | 
				
			||||||
 | 
					--- a/scripts/rstrip.sh
 | 
				
			||||||
 | 
					+++ b/scripts/rstrip.sh
 | 
				
			||||||
 | 
					@@ -20,7 +20,7 @@ TARGETS=$*
 | 
				
			||||||
 | 
					   exit 1
 | 
				
			||||||
 | 
					 }
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					-find $TARGETS -type f -a -exec file {} \; | \
 | 
				
			||||||
 | 
					+find $TARGETS -not -path \*/lib/firmware/\* -a -type f -a -exec file {} \; | \
 | 
				
			||||||
 | 
					   sed -n -e 's/^\(.*\):.*ELF.*\(executable\|relocatable\|shared object\).*,.*/\1:\2/p' | \
 | 
				
			||||||
 | 
					 (
 | 
				
			||||||
 | 
					   IFS=":"
 | 
				
			||||||
 | 
					-- 
 | 
				
			||||||
 | 
					2.34.1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		Reference in New Issue
	
	Block a user