1
1
diff -ru a/src/ap/hw_features.c b/src/ap/hw_features.c
2
2
--- a/src/ap/hw_features.c 2022-01-16 15:51:29.000000000 -0500
3
3
+++ b/src/ap/hw_features.c 2022-07-06 22:57:53.007315518 -0500
4
- @@ -26 ,6 +26,17 @@
4
+ @@ -24 ,6 +24,19 @@
5
5
#include "beacon.h"
6
6
#include "hw_features.h"
7
7
8
+ + #ifdef CONFIG_IWLWIFI
8
9
+ static void ieee80211n_do_nothing(struct hostapd_iface *iface)
9
10
+ {
10
11
+ wpa_printf(MSG_DEBUG,
@@ -16,13 +17,15 @@ diff -ru a/src/ap/hw_features.c b/src/ap/hw_features.c
16
17
+ static void ieee80211n_scan_channels_5g(struct hostapd_iface *iface,
17
18
+ struct wpa_driver_scan_params *params);
18
19
+
20
+ + #endif
19
21
20
22
void hostapd_free_hw_features(struct hostapd_hw_modes *hw_features,
21
23
size_t num_hw_features)
22
- @@ -82,6 +93,33 @@
24
+ @@ -82,6 +93,35 @@
23
25
24
26
if (hostapd_drv_none(hapd))
25
27
return -1;
28
+ + #ifdef CONFIG_IWLWIFI
26
29
+
27
30
+
28
31
+ if (!iface->conf->noscan) {
@@ -50,37 +53,35 @@ diff -ru a/src/ap/hw_features.c b/src/ap/hw_features.c
50
53
+ }
51
54
+ }
52
55
+ }
56
+ + #endif
53
57
modes = hostapd_get_hw_feature_data(hapd, &num_modes, &flags,
54
58
&dfs_domain);
55
59
if (modes == NULL) {
56
-
57
- @@ -308,7 +346,6 @@
58
- sec_chan);
59
- }
60
-
61
- -
62
- static void ieee80211n_check_scan(struct hostapd_iface *iface)
63
- {
64
- struct wpa_scan_results *scan_res;
65
- @@ -517,8 +554,10 @@
66
- int ret;
60
+ @@ -518,8 +556,15 @@
67
61
68
62
/* Check that HT40 is used and PRI / SEC switch is allowed */
69
- - if (!iface->conf->secondary_channel || iface->conf->no_pri_sec_switch)
70
- + if (!iface->conf->secondary_channel || iface->conf->no_pri_sec_switch || iface->conf->noscan) {
63
+ if (!iface->conf->secondary_channel || iface->conf->no_pri_sec_switch ||
64
+ + #ifdef CONFIG_IWLWIFI
65
+ + iface->conf->noscan) {
71
66
+ wpa_printf(MSG_DEBUG, "Not scanning due to noscan?");
67
+ + return 0;
68
+ + }
69
+ + #else
70
+ iface->conf->noscan)
72
71
return 0;
73
- + }
72
+ + #endif
74
73
75
74
hostapd_set_state(iface, HAPD_IFACE_HT_SCAN);
76
75
wpa_printf(MSG_DEBUG, "Scan for neighboring BSSes prior to enabling "
77
- @@ -916,7 +954,7 @@
76
+ @@ -916,7 +954,11 @@
78
77
if (!hostapd_is_usable_edmg(iface))
79
78
return 0;
80
79
81
- - if (!iface->conf->secondary_channel)
80
+ + #ifdef CONFIG_IWLWIFI
82
81
+ if (!iface->conf->secondary_channel || iface->conf->noscan)
82
+ + #else
83
+ if (!iface->conf->secondary_channel)
84
+ + #endif
83
85
return 1;
84
86
85
87
if (hostapd_is_usable_chan(iface, iface->freq +
86
-
0 commit comments