Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
scorpio
external_wpa_supplicant_8
Commits
bc0d6173
Commit
bc0d6173
authored
5 years ago
by
Mark Stevens
Browse files
Options
Download
Email Patches
Plain Diff
start antimony branch
parent
22d69e00
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
40 additions
and
8 deletions
+40
-8
src/drivers/driver_nl80211_event.c
src/drivers/driver_nl80211_event.c
+1
-0
src/drivers/driver_nl80211_scan.c
src/drivers/driver_nl80211_scan.c
+14
-0
src/utils/wpa_debug.c
src/utils/wpa_debug.c
+1
-1
wpa_supplicant/android.config
wpa_supplicant/android.config
+1
-1
wpa_supplicant/bgscan_learn.c
wpa_supplicant/bgscan_learn.c
+1
-1
wpa_supplicant/config_file.c
wpa_supplicant/config_file.c
+10
-2
wpa_supplicant/main.c
wpa_supplicant/main.c
+6
-0
wpa_supplicant/wpa_supplicant.c
wpa_supplicant/wpa_supplicant.c
+5
-3
wpa_supplicant/wpa_supplicant_template.conf
wpa_supplicant/wpa_supplicant_template.conf
+1
-0
No files found.
src/drivers/driver_nl80211_event.c
View file @
bc0d6173
...
...
@@ -974,6 +974,7 @@ static void send_scan_event(struct wpa_driver_nl80211_data *drv, int aborted,
struct
nlattr
*
nl
;
int
rem
;
struct
scan_info
*
info
;
//v-was 50
#define MAX_REPORT_FREQS 50
int
freqs
[
MAX_REPORT_FREQS
];
int
num_freqs
=
0
;
...
...
This diff is collapsed.
Click to expand it.
src/drivers/driver_nl80211_scan.c
View file @
bc0d6173
...
...
@@ -153,6 +153,20 @@ nl80211_scan_common(struct i802_bss *bss, u8 cmd,
goto
fail
;
}
nla_nest_end
(
msg
,
freqs
);
}
else
if
(
0
)
{
struct
nlattr
*
freqs
;
freqs
=
nla_nest_start
(
msg
,
NL80211_ATTR_SCAN_FREQUENCIES
);
if
(
freqs
==
NULL
)
goto
fail
;
i
=
0
;
if
(
nla_put_u32
(
msg
,
1
,
2412
))
goto
fail
;
if
(
nla_put_u32
(
msg
,
2
,
2437
))
goto
fail
;
if
(
nla_put_u32
(
msg
,
3
,
2462
))
goto
fail
;
nla_nest_end
(
msg
,
freqs
);
}
os_free
(
drv
->
filter_ssids
);
...
...
This diff is collapsed.
Click to expand it.
src/utils/wpa_debug.c
View file @
bc0d6173
...
...
@@ -29,7 +29,7 @@ static FILE *wpa_debug_tracing_file = NULL;
#endif
/* CONFIG_DEBUG_LINUX_TRACING */
int
wpa_debug_level
=
MSG_INFO
;
int
wpa_debug_level
=
MSG_DEBUG
;
//bzt:mls
MSG_INFO;
int
wpa_debug_show_keys
=
0
;
int
wpa_debug_timestamp
=
0
;
...
...
This diff is collapsed.
Click to expand it.
wpa_supplicant/android.config
View file @
bc0d6173
...
...
@@ -436,7 +436,7 @@ CONFIG_INTERWORKING=y
CONFIG_HS20
=
y
# Disable roaming in wpa_supplicant
CONFIG_NO_ROAMING
=
y
#
CONFIG_NO_ROAMING=y
# AP mode operations with wpa_supplicant
# This can be used for controlling AP mode operations with wpa_supplicant. It
...
...
This diff is collapsed.
Click to expand it.
wpa_supplicant/bgscan_learn.c
View file @
bc0d6173
...
...
@@ -486,7 +486,7 @@ static int bgscan_learn_notify_scan(void *priv,
{
struct
bgscan_learn_data
*
data
=
priv
;
size_t
i
,
j
;
#define MAX_BSS 5
0
#define MAX_BSS
7
5
u8
bssid
[
MAX_BSS
*
ETH_ALEN
];
size_t
num_bssid
=
0
;
...
...
This diff is collapsed.
Click to expand it.
wpa_supplicant/config_file.c
View file @
bc0d6173
...
...
@@ -165,8 +165,8 @@ static struct wpa_ssid * wpa_config_read_network(FILE *f, int *line, int id)
int
errors
=
0
,
end
=
0
;
char
buf
[
2000
],
*
pos
,
*
pos2
;
wpa_printf
(
MSG_
MSGDUMP
,
"Line: %d - start of a new network block"
,
*
line
);
wpa_printf
(
MSG_
DEBUG
,
"Line: %d - start of a new network block"
,
*
line
);
//^-bzt was MSG_MSGDUMP
ssid
=
os_zalloc
(
sizeof
(
*
ssid
));
if
(
ssid
==
NULL
)
return
NULL
;
...
...
@@ -199,6 +199,10 @@ static struct wpa_ssid * wpa_config_read_network(FILE *f, int *line, int id)
}
}
wpa_printf
(
MSG_DEBUG
,
"Line: %d :'%s' = %s"
,
*
line
,
pos
,
pos2
);
//^-bzt added for testing
if
(
wpa_config_set
(
ssid
,
pos
,
pos2
,
*
line
)
<
0
)
errors
++
;
}
...
...
@@ -398,6 +402,8 @@ struct wpa_config * wpa_config_read(const char *name, struct wpa_config *cfgp)
}
while
(
wpa_config_get_line
(
buf
,
sizeof
(
buf
),
f
,
&
line
,
&
pos
))
{
wpa_printf
(
MSG_DEBUG
,
"Line: %d :'%s'"
,
line
,
pos
);
if
(
os_strcmp
(
pos
,
"network={"
)
==
0
)
{
ssid
=
wpa_config_read_network
(
f
,
&
line
,
id
++
);
if
(
ssid
==
NULL
)
{
...
...
@@ -477,6 +483,7 @@ static void write_str(FILE *f, const char *field, struct wpa_ssid *ssid)
if
(
value
==
NULL
)
return
;
fprintf
(
f
,
"
\t
%s=%s
\n
"
,
field
,
value
);
wpa_printf
(
MSG_DEBUG
,
"write str %s: %s"
,
field
,
value
);
os_free
(
value
);
}
...
...
@@ -486,6 +493,7 @@ static void write_int(FILE *f, const char *field, int value, int def)
if
(
value
==
def
)
return
;
fprintf
(
f
,
"
\t
%s=%d
\n
"
,
field
,
value
);
wpa_printf
(
MSG_DEBUG
,
"write int %s: %d"
,
field
,
value
);
}
...
...
This diff is collapsed.
Click to expand it.
wpa_supplicant/main.c
View file @
bc0d6173
...
...
@@ -297,6 +297,7 @@ int main(int argc, char *argv[])
goto
out
;
}
}
// params.wpa_debug_level = MSG_DEBUG;
exitcode
=
0
;
global
=
wpa_supplicant_init
(
&
params
);
...
...
@@ -309,6 +310,10 @@ int main(int argc, char *argv[])
"wpa_supplicant"
);
}
for
(
i
=
0
;
i
<
argc
;
i
++
)
{
wpa_printf
(
MSG_DEBUG
,
" %s"
,
argv
[
i
]);
}
for
(
i
=
0
;
exitcode
==
0
&&
i
<
iface_count
;
i
++
)
{
struct
wpa_supplicant
*
wpa_s
;
...
...
@@ -322,6 +327,7 @@ int main(int argc, char *argv[])
exitcode
=
-
1
;
break
;
}
wpa_printf
(
MSG_DEBUG
,
"iface %d confanother '%s'"
,
i
,
iface
->
confanother
?
iface
->
confanother
:
"N/A"
);
wpa_s
=
wpa_supplicant_add_iface
(
global
,
&
ifaces
[
i
],
NULL
);
if
(
wpa_s
==
NULL
)
{
exitcode
=
-
1
;
...
...
This diff is collapsed.
Click to expand it.
wpa_supplicant/wpa_supplicant.c
View file @
bc0d6173
...
...
@@ -1981,7 +1981,7 @@ static void wpas_start_assoc_cb(struct wpa_radio_work *work, int deinit)
const
u8
*
ie
,
*
md
=
NULL
;
#endif
/* CONFIG_IEEE80211R */
wpa_msg
(
wpa_s
,
MSG_INFO
,
"Trying to associate with "
MACSTR
" (SSID='%s' freq=%d M
H
z)"
,
MAC2STR
(
bss
->
bssid
),
" (SSID='%s' freq=%d M
h
z)"
,
MAC2STR
(
bss
->
bssid
),
wpa_ssid_txt
(
bss
->
ssid
,
bss
->
ssid_len
),
bss
->
freq
);
bssid_changed
=
!
is_zero_ether_addr
(
wpa_s
->
bssid
);
os_memset
(
wpa_s
->
bssid
,
0
,
ETH_ALEN
);
...
...
@@ -4033,11 +4033,13 @@ static int wpa_supplicant_init_iface(struct wpa_supplicant *wpa_s,
int
capa_res
;
wpa_printf
(
MSG_DEBUG
,
"Initializing interface '%s' conf '%s' driver "
"'%s' ctrl_interface '%s' bridge '%s'"
,
iface
->
ifname
,
"'%s' ctrl_interface '%s' bridge
'%s' overlay
'%s'"
,
iface
->
ifname
,
iface
->
confname
?
iface
->
confname
:
"N/A"
,
iface
->
driver
?
iface
->
driver
:
"default"
,
iface
->
ctrl_interface
?
iface
->
ctrl_interface
:
"N/A"
,
iface
->
bridge_ifname
?
iface
->
bridge_ifname
:
"N/A"
);
iface
->
bridge_ifname
?
iface
->
bridge_ifname
:
"N/A"
,
iface
->
confanother
?
iface
->
confanother
:
"N/A"
);
if
(
iface
->
confname
)
{
#ifdef CONFIG_BACKEND_FILE
...
...
This diff is collapsed.
Click to expand it.
wpa_supplicant/wpa_supplicant_template.conf
View file @
bc0d6173
...
...
@@ -4,3 +4,4 @@ eapol_version=1
ap_scan
=
1
fast_reauth
=
1
pmf
=
1
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment