Skip to content

Commit 4f1eded

Browse files
committed
Renamed NSAPI_SECURITY_UNSUPPORTED -> NSAPI_SECURITY_UNKNOWN
Returning a wifi access point without information regarding the security type is only valid if the security type is unknown (from the perspective of the network-socket API). For clarity in situations in which scan may return an unsupported, but known security type, type name has been changed to NSAPI_SECURITY_UNKNOWN.
1 parent febc341 commit 4f1eded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/netsocket/nsapi_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ typedef enum nsapi_security {
5858
NSAPI_SECURITY_WPA = 0x2, /*!< phrase conforms to WPA */
5959
NSAPI_SECURITY_WPA2 = 0x3, /*!< phrase conforms to WPA2 */
6060
NSAPI_SECURITY_WPA_WPA2 = 0x4, /*!< phrase conforms to WPA/WPA2 */
61-
NSAPI_SECURITY_UNSUPPORTED = 0xFF, /*!< unknown/unsupported security in scan results */
61+
NSAPI_SECURITY_UNKNOWN = 0xFF, /*!< unknown/unsupported security in scan results */
6262
} nsapi_security_t;
6363

6464
/** Maximum size of IP address representation

0 commit comments

Comments
 (0)