diff --git a/.github/workflows/native-build.yml b/.github/workflows/native-build.yml index 2f0c5e6..df2f5b0 100644 --- a/.github/workflows/native-build.yml +++ b/.github/workflows/native-build.yml @@ -29,5 +29,3 @@ jobs: # Build component chmod +x build_tools_workflows/cov_docker_script/build_native.sh ./build_tools_workflows/cov_docker_script/build_native.sh ./cov_docker_script/component_config.json "$(pwd)" - env: - GITHUB_TOKEN: ${{ secrets.RDKCM_RDKE }} diff --git a/CHANGELOG.md b/CHANGELOG.md index ba788b7..fbe94b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,130 +4,33 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). -#### [2.6.0](https://github.com/rdkcentral/hotspot/compare/2.5.0...2.6.0) +#### 2.7.0 +- RDKB-67262: Remove Github token from Native build [`#71`](https://github.com/rdkcentral/hotspot/pull/71) +- RDKCOM-5639: RDKBDEV-3518 Add a marker string to monitor Disassociated Hotspot clients due to DHCP failure [`#69`](https://github.com/rdkcentral/hotspot/pull/69) +- RDKB-65626: Prevent invalid hotspot command execution [`#70`](https://github.com/rdkcentral/hotspot/pull/70) - RDKB-66227: Not removing Bridges Incase of Hotspot Disable and wan Failover. [`#66`](https://github.com/rdkcentral/hotspot/pull/66) -- Merge tag '2.5.0' into develop [`91e2f9f`](https://github.com/rdkcentral/hotspot/commit/91e2f9f44559d0a430f6c0e79ab416e9032ca8c7) - -#### [2.5.0](https://github.com/rdkcentral/hotspot/compare/2.4.0...2.5.0) - -> 22 July 2026 - - RDKB-66032 : Add explicit permissions block to PR Format Check workflow [`#62`](https://github.com/rdkcentral/hotspot/pull/62) - Add PR Format Check workflow [`#59`](https://github.com/rdkcentral/hotspot/pull/59) -- Add changelog for release 2.5.0 [`9d75e2d`](https://github.com/rdkcentral/hotspot/commit/9d75e2d25f8fc9d04ebc1c54a548a5de1f6be986) -- Merge tag '2.4.0' into develop [`b6d33bd`](https://github.com/rdkcentral/hotspot/commit/b6d33bdb832a924fe19731f8ca8e711ad5d93f5d) - -#### [2.4.0](https://github.com/rdkcentral/hotspot/compare/2.3.0...2.4.0) - -> 15 June 2026 - - RDKB-65460:[8.6s4] [QE] Gretap's for Managed wifi getting deleted when moving to bridge mode [`#51`](https://github.com/rdkcentral/hotspot/pull/51) - RDKCOM-5536: RDKBDEV-3380 Add hotspot Documentation [`#37`](https://github.com/rdkcentral/hotspot/pull/37) -- Add changelog for release 2.4.0 [`135d8ef`](https://github.com/rdkcentral/hotspot/commit/135d8efb0b5e15b29cad07bee52ac2e7cd5b9640) -- Merge tag '2.3.0' into develop [`0848273`](https://github.com/rdkcentral/hotspot/commit/084827339be309fec2152729ecd3e1e22f758167) - -#### [2.3.0](https://github.com/rdkcentral/hotspot/compare/2.2.0...2.3.0) - -> 23 April 2026 - - RDKCOM-5492: RDKBDEV-3336 De-authenticating Hotspot Clients Upon DHCP Failure [`#32`](https://github.com/rdkcentral/hotspot/pull/32) -- Add changelog for release 2.3.0 [`b9ea302`](https://github.com/rdkcentral/hotspot/commit/b9ea3021ee393e8413da5b7e00e60fd3ceee0b00) -- Merge tag '2.2.0' into develop [`1c7c790`](https://github.com/rdkcentral/hotspot/commit/1c7c7905227dbee057913b68ff588c09d45c96da) - -#### [2.2.0](https://github.com/rdkcentral/hotspot/compare/2.1.1...2.2.0) - -> 1 April 2026 - - XF10-637 : unable to connect clients to hotspot VAPs on EPON network [`#43`](https://github.com/rdkcentral/hotspot/pull/43) - RDKB-64090 : Hotspot gre tunnels not created though Hotspot SSID are up impacting hotspot client connectivity [`#46`](https://github.com/rdkcentral/hotspot/pull/46) -- Add changelog for release 2.2.0 [`e2f3e40`](https://github.com/rdkcentral/hotspot/commit/e2f3e40b4e9e5d255237b3c6d35ddaf23a138778) -- Merge tag '2.1.1' into develop [`cd87b55`](https://github.com/rdkcentral/hotspot/commit/cd87b5544cd3b8eb5a6636e6e88dafadaeb875ec) - -#### [2.1.1](https://github.com/rdkcentral/hotspot/compare/2.1.0...2.1.1) - -> 23 March 2026 - - RDKB-63409:gretap's for managedwifi not created when disable and enable Hotspot [`#41`](https://github.com/rdkcentral/hotspot/pull/41) -- Add changelog for release 2.1.1 [`3839c82`](https://github.com/rdkcentral/hotspot/commit/3839c828922caaa6a3335cb7ccf7d3b6adf92498) -- Merge tag '2.1.0' into develop [`a892760`](https://github.com/rdkcentral/hotspot/commit/a892760d2262bb7f59590a7552c513f9fac0729a) - -#### [2.1.0](https://github.com/rdkcentral/hotspot/compare/2.0.0...2.1.0) - -> 4 March 2026 - - RDKB-62995 : [GitHub Coverity] Enable Coverity Scan for hotspot using Native Build… [`#36`](https://github.com/rdkcentral/hotspot/pull/36) -- Add changelog for release 2.1.0 [`ea72f0d`](https://github.com/rdkcentral/hotspot/commit/ea72f0d884d5e6cef69b4ecae12ef60311b5cede) -- Merge tag '2.0.0' into develop [`473d82d`](https://github.com/rdkcentral/hotspot/commit/473d82dddc9040af983593d33271e45a467536fd) - -### [2.0.0](https://github.com/rdkcentral/hotspot/compare/1.3.0...2.0.0) - -> 4 February 2026 - - RDKB-60325 notify_tunnel_status failure in hotspot [`#33`](https://github.com/rdkcentral/hotspot/pull/33) -- Add changelog for release 2.0.0 [`27e4db4`](https://github.com/rdkcentral/hotspot/commit/27e4db446c539e26106342cd04c95143ef48f0b1) -- Merge tag '1.3.0' into develop [`bedab4e`](https://github.com/rdkcentral/hotspot/commit/bedab4ec13d41dc87bac9551ca63d6e82a3bea28) - -#### [1.3.0](https://github.com/rdkcentral/hotspot/compare/1.2.0...1.3.0) - -> 17 December 2025 - - XF10-229 XF10-281 : Analyse & Add support for hotspot 6G [`#29`](https://github.com/rdkcentral/hotspot/pull/29) -- Add changelog for release 1.3.0 [`1155ab4`](https://github.com/rdkcentral/hotspot/commit/1155ab49a356fef892affa82d877ee2d8fae41cc) -- Merge tag '1.2.0' into develop [`305fa57`](https://github.com/rdkcentral/hotspot/commit/305fa5788baab63fc0a26f2fee242451164bb6df) - -#### [1.2.0](https://github.com/rdkcentral/hotspot/compare/1.1.2...1.2.0) - -> 20 November 2025 - - RDKB-61953 RDKB-62249 : Fixing coverity issues for hotspot repo [`#23`](https://github.com/rdkcentral/hotspot/pull/23) -- Coverity fixes for hotspot repo [`75d154a`](https://github.com/rdkcentral/hotspot/commit/75d154a3d18a5f18ca3875c1fc75b826615b1b11) -- Update tunnelcheck.c [`6c27bf8`](https://github.com/rdkcentral/hotspot/commit/6c27bf8f188afe7fd33800b5ffa3fd46e7c86e97) -- Update tunnelcheck.c [`d5e5bd0`](https://github.com/rdkcentral/hotspot/commit/d5e5bd0f2173bb76831bd050a5bc6d8ae8a55ad6) - -#### [1.1.2](https://github.com/rdkcentral/hotspot/compare/1.1.1...1.1.2) - -> 23 October 2025 - - RDKB-61772: [ccsp-hotspot] remove _64BIT_ARCH_SUPPORT_ macro [`#17`](https://github.com/rdkcentral/hotspot/pull/17) -- Add changelog for release [`eed1240`](https://github.com/rdkcentral/hotspot/commit/eed12405faa8682172aabd97cb017a20ed3c56f0) -- Merge tag '1.1.1' into develop [`b81b95e`](https://github.com/rdkcentral/hotspot/commit/b81b95ec1f825dd609e28be3b59f144fa471df6b) - -#### [1.1.1](https://github.com/rdkcentral/hotspot/compare/1.1.0...1.1.1) - -> 9 October 2025 - - Update CODEOWNERS [`#18`](https://github.com/rdkcentral/hotspot/pull/18) - RDKB-61692:gretap's for Amenity not created when primary tunnel switched to secondary [`#16`](https://github.com/rdkcentral/hotspot/pull/16) - Deploy fossid_integration_stateless_diffscan_target_repo action [`#15`](https://github.com/rdkcentral/hotspot/pull/15) - Update CODEOWNERS [`#13`](https://github.com/rdkcentral/hotspot/pull/13) - Deploy cla action [`#14`](https://github.com/rdkcentral/hotspot/pull/14) -- RDKB-61692: gretap's for managedwifi not created when primary tunnel is down [`f677262`](https://github.com/rdkcentral/hotspot/commit/f677262fa5de13d084f1a20ffc67173e7b4d3986) -- Add changelog for release [`f65a258`](https://github.com/rdkcentral/hotspot/commit/f65a2585ba9c892d94f2d59dd251746cace88ff2) -- Merge tag '1.1.0' into develop [`027ae4f`](https://github.com/rdkcentral/hotspot/commit/027ae4fd66f578466e2d239d9b810d5d4df91894) - -#### [1.1.0](https://github.com/rdkcentral/hotspot/compare/1.0.1...1.1.0) - -> 25 September 2025 - - RDKB-61692:gretap's for managedwifi not created when primary tunnel is down [`#10`](https://github.com/rdkcentral/hotspot/pull/10) -- Add changelog for release [`ee5c34b`](https://github.com/rdkcentral/hotspot/commit/ee5c34b3119d7034b905c8a8de6ea640f6df7270) -- Merge tag '1.0.1' into develop [`5a96dd5`](https://github.com/rdkcentral/hotspot/commit/5a96dd5ea846b65db1698b15e84e2fa995d6d00e) - -#### [1.0.1](https://github.com/rdkcentral/hotspot/compare/1.0.0...1.0.1) - -> 29 August 2025 - - RDKB-60132:DHCP Option 82 support for Connected Building Amenity Network [`#7`](https://github.com/rdkcentral/hotspot/pull/7) - Update run_ut.sh [`#3`](https://github.com/rdkcentral/hotspot/pull/3) -- Add changelog for release [`713c782`](https://github.com/rdkcentral/hotspot/commit/713c7825651d6351b7cb4dfe544866400346d73e) -- Removing gKeepAliveInterface [`7fb23d4`](https://github.com/rdkcentral/hotspot/commit/7fb23d4a66c623f08196feda203e73687d606184) -- Merge tag '1.0.0' into develop [`c8e0df7`](https://github.com/rdkcentral/hotspot/commit/c8e0df73fa981ee03b9831747d507d32dcc9e8c3) - -#### 1.0.0 - -> 23 July 2025 - - Import of source (stable2) [`5c468c1`](https://github.com/rdkcentral/hotspot/commit/5c468c1c276e8c1a66ea827ac8abf6d06c683070) -- Deploy L1-tests action [`c6eea5b`](https://github.com/rdkcentral/hotspot/commit/c6eea5b41c0d4fc1e7534d341b63480b021188ea) -- Deploy cla action [`4f68910`](https://github.com/rdkcentral/hotspot/commit/4f6891075addb7681010cd32c033339041160900) +- Coverity fixes for hotspot repo [`75d154a`](https://github.com/rdkcentral/hotspot/commit/75d154a3d18a5f18ca3875c1fc75b826615b1b11) +- Update tunnelcheck.c [`6c27bf8`](https://github.com/rdkcentral/hotspot/commit/6c27bf8f188afe7fd33800b5ffa3fd46e7c86e97) diff --git a/source/HotspotApi/HotspotApi.c b/source/HotspotApi/HotspotApi.c index de91ca0..e54a9ae 100644 --- a/source/HotspotApi/HotspotApi.c +++ b/source/HotspotApi/HotspotApi.c @@ -628,7 +628,7 @@ int hotspot_sysevent_enable_param() static void addBrideAndVlan(int vlanIndex, int wan_vlan){ - char cmdBuf[1024]; + char cmdBuf[1024] = {0}; int offset = 0; #ifdef CORE_NET_LIB libnet_status status = CNL_STATUS_SUCCESS; @@ -830,7 +830,9 @@ static void addBrideAndVlan(int vlanIndex, int wan_vlan){ CcspTraceInfo(("HOTSPOT_LIB : Buffer 2 gre add = %s %d\n", cmdBuf, offset)); - sys_execute_cmd(cmdBuf); + if (offset > 0) { + sys_execute_cmd(cmdBuf); + } if(vlanIndex == VLAN_INDEX_1){ t2_event_d("XWIFI_VLANID_6_split", wan_vlan); diff --git a/source/hotspotfd/dhcpsnooper.c b/source/hotspotfd/dhcpsnooper.c index a51d7f0..ae231bf 100644 --- a/source/hotspotfd/dhcpsnooper.c +++ b/source/hotspotfd/dhcpsnooper.c @@ -1238,6 +1238,11 @@ static int snoop_packetHandler(struct nfq_q_handle * myQueue, struct nfgenmsg *m constructCommand(mac_str, macaddr_with_index); if (macaddr_with_index[0] != '\0' && publish_to_onewifi(macaddr_with_index)) { + char telemetry_buf[18] = {'\0'}; + //Added marker to track the disassociated client upon DHCP failure + CcspTraceInfo(("DHCP_FAILED_AND_CLIENT_DISASSOCIATED: %s\n",mac_str)); + snprintf(telemetry_buf, sizeof(telemetry_buf), "%s", mac_str); + t2_event_s("DHCP_FAILED_AND_CLIENT_DISASSOCIATED", telemetry_buf); msg_debug("DHCP ACK not received for client MAC.Publising RBus event Timer stopped. Time elapsed: %ld s - line %d\n", (elapsed_time/1000), __LINE__); }