Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ieee1905
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Multi-AP
ieee1905
Commits
8771892d
Commit
8771892d
authored
3 years ago
by
Anjan Chanda
Browse files
Options
Downloads
Patches
Plain Diff
support sae and sae-mixed encryption types for AP-autoconfig
parent
90c9d16b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/config.c
+10
-0
10 additions, 0 deletions
src/config.c
src/i1905_wsc.h
+5
-2
5 additions, 2 deletions
src/i1905_wsc.h
with
15 additions
and
2 deletions
src/config.c
+
10
−
0
View file @
8771892d
...
@@ -109,6 +109,10 @@ static int uci_update_section_ap(const char *config, struct i1905_apconfig *ap)
...
@@ -109,6 +109,10 @@ static int uci_update_section_ap(const char *config, struct i1905_apconfig *ap)
uci_add_option
(
ctx
,
pkg
,
sec
,
"key"
,
ap
->
key
,
false
);
uci_add_option
(
ctx
,
pkg
,
sec
,
"key"
,
ap
->
key
,
false
);
if
(
ap
->
auth_type
==
0x0020
)
/* WPS_AUTH_WPA2PSK */
if
(
ap
->
auth_type
==
0x0020
)
/* WPS_AUTH_WPA2PSK */
uci_add_option
(
ctx
,
pkg
,
sec
,
"encryption"
,
"psk2"
,
false
);
uci_add_option
(
ctx
,
pkg
,
sec
,
"encryption"
,
"psk2"
,
false
);
else
if
(
ap
->
auth_type
==
0x0040
)
/* WPS_AUTH_SAE */
uci_add_option
(
ctx
,
pkg
,
sec
,
"encryption"
,
"sae"
,
false
);
else
if
(
ap
->
auth_type
==
0x0060
)
uci_add_option
(
ctx
,
pkg
,
sec
,
"encryption"
,
"sae-mixed"
,
false
);
uci_commit
(
ctx
,
&
pkg
,
false
);
uci_commit
(
ctx
,
&
pkg
,
false
);
uci_free_context
(
ctx
);
uci_free_context
(
ctx
);
...
@@ -300,6 +304,12 @@ static int i1905_config_get_ap(struct i1905_config *cfg, struct uci_section *s)
...
@@ -300,6 +304,12 @@ static int i1905_config_get_ap(struct i1905_config *cfg, struct uci_section *s)
if
(
strstr
(
val
,
"psk2"
))
{
if
(
strstr
(
val
,
"psk2"
))
{
ap
->
auth_type
=
0x0020
;
/* WPS_AUTH_WPA2PSK */
ap
->
auth_type
=
0x0020
;
/* WPS_AUTH_WPA2PSK */
ap
->
enc_type
=
0x0008
;
/* WPS_ENCR_AES */
ap
->
enc_type
=
0x0008
;
/* WPS_ENCR_AES */
}
else
if
(
strstr
(
val
,
"sae-mixed"
))
{
ap
->
auth_type
=
0x0060
;
/* WPS_AUTH_SAE | WPS_AUTH_WPA2PSK */
ap
->
enc_type
=
0x0008
;
/* WPS_ENCR_AES */
}
else
if
(
strstr
(
val
,
"sae"
))
{
ap
->
auth_type
=
0x0040
;
/* WPS_AUTH_SAE */
ap
->
enc_type
=
0x0008
;
/* WPS_ENCR_AES */
}
else
{
}
else
{
free
(
ap
);
free
(
ap
);
fprintf
(
stderr
,
"Unsupported ap encryption in config
\n
"
);
fprintf
(
stderr
,
"Unsupported ap encryption in config
\n
"
);
...
...
This diff is collapsed.
Click to expand it.
src/i1905_wsc.h
+
5
−
2
View file @
8771892d
...
@@ -30,11 +30,14 @@
...
@@ -30,11 +30,14 @@
#define ATTR_PUBLIC_KEY (0x1032)
#define ATTR_PUBLIC_KEY (0x1032)
#define ATTR_AUTH_TYPE_FLAGS (0x1004)
#define ATTR_AUTH_TYPE_FLAGS (0x1004)
#define WPS_AUTH_OPEN (0x0001)
#define WPS_AUTH_OPEN (0x0001)
#define WPS_AUTH_WPAPSK (0x0002)
#define WPS_AUTH_WPAPSK (0x0002)
/* deprecated */
#define WPS_AUTH_SHARED (0x0004)
/* deprecated */
#define WPS_AUTH_SHARED (0x0004)
/* deprecated */
#define WPS_AUTH_WPA (0x0008)
#define WPS_AUTH_WPA (0x0008)
/* deprecated */
#define WPS_AUTH_WPA2 (0x0010)
#define WPS_AUTH_WPA2 (0x0010)
#define WPS_AUTH_WPA2PSK (0x0020)
#define WPS_AUTH_WPA2PSK (0x0020)
#define WPS_AUTH_SAE (0x0040)
#define WPS_AUTH_WPA3_T (WPS_AUTH_WPA2PSK | WPS_AUTH_SAE)
#define ATTR_ENCR_TYPE_FLAGS (0x1010)
#define ATTR_ENCR_TYPE_FLAGS (0x1010)
#define WPS_ENCR_NONE (0x0001)
#define WPS_ENCR_NONE (0x0001)
#define WPS_ENCR_WEP (0x0002)
/* deprecated */
#define WPS_ENCR_WEP (0x0002)
/* deprecated */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment