-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup module to support WPA3 Wi-Fi networks (#555)
* feat: add support for WPA3 networks * feat: wpa_cli use updated to configure WPA3 WpaCliSetup extended to support open, WPA2 and WPA3. By default it attempts to configure based on the existing arguments. set_network can take an additional argument to explicitly choose the network security type. (this could be an additional parameter over MQTT). Note: WPA3 doesn't support pre shared key (64 hex ditits), it requires the password/passphrase. Hence over MQTT a quoted "psk": "\"thePassphrase\"" is required and not the output from the wpa_passphrase command. * fix: added ieee80211w setting to network when needed * fix: remove duplicate call to publish_configured_networks() * fix: configured_networks to publish a single array Previously configured_networks published an array per wifi device which resulted in empty arrays where a device had no configured networks. Signed-off-by: James Chapman <james.chapman@pionix.de>
- Loading branch information
Showing
8 changed files
with
343 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
set(TEST_TARGET_NAME ${PROJECT_NAME}_tests) | ||
add_executable(${TEST_TARGET_NAME}) | ||
|
||
target_include_directories(${TEST_TARGET_NAME} PUBLIC ${GTEST_INCLUDE_DIRS} . ..) | ||
|
||
target_sources(${TEST_TARGET_NAME} PRIVATE | ||
RunApplicationStub.cpp | ||
WiFiSetupTest.cpp | ||
../WiFiSetup.cpp | ||
) | ||
|
||
find_package(GTest REQUIRED) | ||
|
||
target_link_libraries(${TEST_TARGET_NAME} PRIVATE | ||
${GTEST_LIBRARIES} | ||
${GTEST_MAIN_LIBRARIES} | ||
) | ||
|
||
add_test(${TEST_TARGET_NAME} ${TEST_TARGET_NAME}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.