-
Notifications
You must be signed in to change notification settings - Fork 3k
Enterprise_mode_+_wifi_configuraiton_api: update ODIN drivers to v3.7.0 RC1 #10454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enterprise_mode_+_wifi_configuraiton_api: update ODIN drivers to v3.7.0 RC1 #10454
Conversation
...TARGET_STM32F439xI/TARGET_MODULE_UBLOX_ODIN_W2/sdk/ublox-odin-w2-drivers/OdinWiFiInterface.h
Outdated
Show resolved
Hide resolved
...RGET_STM32F439xI/TARGET_MODULE_UBLOX_ODIN_W2/sdk/ublox-odin-w2-drivers/OdinWiFiInterface.cpp
Show resolved
Hide resolved
0dda8c4
to
c98c35e
Compare
@MarceloSalazar can u ask ur team to start review as we need to target it in coming release i-e 12.2 most likely |
@aqib-ublox, thank you for your changes. |
@michalpasztamobica could you re-review please ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still think NSAPI_ERROR_CERT_SIZE is not necessary and NSAPI_ERROR_PARAMETER should be used instead.
@SeppoTakalo , what do you think?
@SeppoTakalo what u suggest? |
Use |
c98c35e
to
3eb8248
Compare
it's removed and replaced with NSAPI_ERROR_PARAMETER |
@MarceloSalazar waiting for review to be finalised? |
@ARMmbed/mbed-os-maintainers please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main concern is about tls config change, requested help from tls team.
@@ -0,0 +1,52 @@ | |||
/* ODIN-W2 implementation of WiFi Config Interface | |||
* Copyright (c) 2016 u-blox Malm� AB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
year should be 2019
Add please SPDX identifier as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also here, SPDX identifier
already there LICENSE-2.0 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SPDX-License-Identifier: Apache-2.0
is needed, as in other files
@@ -0,0 +1,117 @@ | |||
/* ODIN-W2 user Config Interface | |||
* Copyright (c) 2016 u-blox Malm� AB | |||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also here, SPDX identifier
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@0xc0170 corrected
Only in targets code - can go to the patch release ? I see above note about 5.12.2 . |
@0xc0170 couldn't get it? 5.12.2 is released so might be target in next patch release or u prefer it to be part of full release? in that case as per @MarceloSalazar code freeze for that is 30 May and that's too far. Please correct me if i am wrong |
Edited: this is extending security type, therefore it was as "functionality change". In this case, 5.13 would be appropriate. @RonEld If you can help how to resolve that mbed config - it is the main outstanding one in this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting for mbedtls config change
3c1a2c2
to
0282f1e
Compare
features/mbedtls/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/mbedtls_device.h
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The configuration for MBEDTLS_MPI_WINDOW_SIZE
should be documented though, in case your users would like to change it in their user defined configuration.
@0xc0170 ? |
@ARMmbed/mbed-os-maintainers please review and comment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a question regarding a curious construct; otherwise I did not find any Mbed TLS related issues.
case ODIN_CFG_SET_FT_MODE: return cbTARGET_CFG_SET_FT_MODE; | ||
case ODIN_CFG_GET_FT_MODE: return cbTARGET_CFG_GET_FT_MODE; | ||
default: | ||
MBED_ASSERT(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this supposed to be asserting true
? It would seem more natural to assert false
upon encountering an unrecognized identifier.
Edit: there is one more such case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes that's right @AmmadRehmat please see this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@k-stachowiak it's corrected thanks for pointing out
0282f1e
to
43759c0
Compare
case ODIN_CFG_SET_FT_MODE: return cbTARGET_CFG_SET_FT_MODE; | ||
case ODIN_CFG_GET_FT_MODE: return cbTARGET_CFG_GET_FT_MODE; | ||
default: | ||
MBED_ASSERT(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@k-stachowiak corrected
case ODIN_POWER_SAVE_MODE_DEEP_SLEEP: return cbTARGET_POWER_SAVE_MODE_DEEP_SLEEP; | ||
default: | ||
MBED_ASSERT(false); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@k-stachowiak corrected
@0xc0170 any update? |
@0xc0170 ? |
@MarceloSalazar whats status? |
@0xc0170 please confirm you are happy with the licence updates. Running the CI in the meantime |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Hello, I'm working on IoT project and I want to use WiFi enterprise protocole (eap-tls) to connect my device, I recovered a EKV-ODIN-W2 board, but regarding the software part I don't know how to start, is it possible to recover a getting started for Enterprise mode for ODIN-W2 ? |
@aqib-ublox @adbridge @0xc0170 to comment. |
cc @ARMmbed/team-ublox if anyone can help with the above question |
Description
This pull requests contains
Enterprise mode supporting EAP_TLS and PEAP methods for enterprise security.
A new private API for wifi connect() as enterprise mode require certificates such as CA server and client certificate along with private key in addition to credentials for connection.
Wifi configuration API.
This release also contains following fixes
Ublox: Ublox Odin W2 WIFI asserts during firmware download #9621
UBLOX_EVK_ODIN_W2 with IAR returns DEVICE_ERROR instead of AUTH_ERROR/NO_CONNECTION when wrong channel is set #10312
Tests Results
iar_mbed_os_log.txt
arm_mbed_os_logs.txt
gcc_arm_mbed_os_log.txt
arm_driver_log.txt
iar_driver_logs.txt
gcc_arm_driver_logs.txt
iar_ble_gatt_server.txt
gcc_arm_ble_gatt_server.txt
arm_ble_gatt_server.txt
Pull request type
Reviewers
Release Notes
A private API is provided for ODIN_W2 target against enterprise mode.
Application is required to pass certificate(CA cert or client cert) and key (private key) in PEM format currently. User is required to pass those certificates through cert_handle auth_cert_s and an appropriate security should be selected either NSAPI_SECURITY_EAP_TLS or NSAPI_SECURITY_PEAP.
For example:
Configuration API
https://github.com/u-blox/mbed-os/blob/0dda8c447c644cb8ee5063099ad09226a6caf746/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_MODULE_UBLOX_ODIN_W2/sdk/ublox-odin-w2-drivers/cb_wlan_driver_config.h