[rdkb][common][conf][Add filogic830 onewifi build support]
[Description]
Add filogic830 onewifi build support
[Release-log]
Change-Id: I5db0bc298ecfbc84c4338bf6dac77a15ddd3474e
diff --git a/recipes-ccsp/rdk-wifi-libhostap/files/Rpi_rdkwifilibhostap_changes.patch b/recipes-ccsp/rdk-wifi-libhostap/files/Rpi_rdkwifilibhostap_changes.patch
new file mode 100644
index 0000000..0c1a156
--- /dev/null
+++ b/recipes-ccsp/rdk-wifi-libhostap/files/Rpi_rdkwifilibhostap_changes.patch
@@ -0,0 +1,25 @@
+--- git/source/hostap-2.10/src/ap/drv_callbacks.c 2023-06-08 11:27:27.645895606 +0000
++++ git/source/hostap-2.10/src/ap/drv_callbacks.c 2023-06-08 11:26:49.786465276 +0000
+@@ -772,6 +772,9 @@
+ wpa_auth_sm_event(sta->wpa_sm, WPA_DISASSOC);
+ sta->acct_terminate_cause = RADIUS_ACCT_TERMINATE_CAUSE_USER_REQUEST;
+ ieee802_1x_notify_port_enabled(sta->eapol_sm, 0);
++#ifdef _PLATFORM_RASPBERRYPI_
++ hostapd_drv_sta_disassoc(hapd, sta->addr, WLAN_REASON_DISASSOC_STA_HAS_LEFT);
++#endif
+ ap_free_sta(hapd, sta);
+ }
+
+--- git/source/hostap-2.10/src/ap/hostapd.c 2023-06-10 18:14:04.381530228 +0000
++++ git/source/hostap-2.10/src/ap/hostapd.c 2023-06-10 18:14:25.597262764 +0000
+@@ -3321,6 +3321,10 @@
+ * been authorized. */
+ if (!hapd->conf->ieee802_1x && !hapd->conf->wpa && !hapd->conf->osen) {
+ ap_sta_set_authorized(hapd, sta, 1);
++#ifdef _PLATFORM_RASPBERRYPI_
++ /*When Station is connected with OPEN Mode, need to authorize the station */
++ hostapd_set_authorized(hapd, sta, 1);
++#endif
+ os_get_reltime(&sta->connected_time);
+ accounting_sta_start(hapd, sta);
+ }
diff --git a/recipes-ccsp/rdk-wifi-libhostap/files/fixed_6G_wrong_freq.patch b/recipes-ccsp/rdk-wifi-libhostap/files/fixed_6G_wrong_freq.patch
new file mode 100644
index 0000000..8ab4a59
--- /dev/null
+++ b/recipes-ccsp/rdk-wifi-libhostap/files/fixed_6G_wrong_freq.patch
@@ -0,0 +1,21 @@
+diff --git a/source/hostap-2.10/src/common/ieee802_11_common.c b/source/hostap-2.10//src/common/ieee802_11_common.c
+index 18bdd5d17..bb83b99a4 100644
+--- a/source/hostap-2.10/src/common/ieee802_11_common.c
++++ b/source/hostap-2.10/src/common/ieee802_11_common.c
+@@ -1476,13 +1476,11 @@ static int ieee80211_chan_to_freq_global(u8 op_class, u8 chan)
+ case 135: /* UHB channels, 80+80 MHz: 7, 23, 39.. */
+ if (chan < 1 || chan > 233)
+ return -1;
+-#ifndef CONFIG_DRIVER_BRCM
+- return 5940 + chan * 5;
+-#else
++
+ /* New 6GHz channelization - May 2020 */
+ if (chan == 2) return 5935;
+- else return 5950 + chan * 5;
+-#endif /* CONFIG_DRIVER_BRCM */
++
++ return 5950 + chan * 5;
+ case 136: /* UHB channels, 20 MHz: 2 */
+ if (chan == 2)
+ return 5935;
diff --git a/recipes-ccsp/rdk-wifi-libhostap/files/rdkwifilibhostap_compilation_errors_fix_64b.patch b/recipes-ccsp/rdk-wifi-libhostap/files/rdkwifilibhostap_compilation_errors_fix_64b.patch
new file mode 100644
index 0000000..a93ff2f
--- /dev/null
+++ b/recipes-ccsp/rdk-wifi-libhostap/files/rdkwifilibhostap_compilation_errors_fix_64b.patch
@@ -0,0 +1,10 @@
+--- git/source/hostap-2.10/src/Makefile.am 2023-06-15 15:49:18.872238320 +0000
++++ git/source/hostap-2.10/src/Makefile.am 2023-06-15 15:48:44.796752075 +0000
+@@ -158,6 +158,7 @@
+ libhostap_la_SOURCES += utils/ip_addr.c
+ libhostap_la_SOURCES += utils/uuid.c
+ libhostap_la_SOURCES += utils/base64.c
++libhostap_la_SOURCES += utils/crc32.c
+
+ libhostap_la_SOURCES += crypto/random.c
+ #libhostap_la_SOURCES += crypto/md5.c