Skip to content

Add WPA3 (GCMP) display support to scan sketches #305

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion examples/ScanNetworks/ScanNetworks.ino
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ void printEncryptionType(int thisType) {
case ENC_TYPE_CCMP:
Serial.println("WPA2");
break;
case ENC_TYPE_GCMP:
Serial.println("WPA3");
break;
case ENC_TYPE_NONE:
Serial.println("None");
break;
Expand All @@ -96,7 +99,9 @@ void printEncryptionType(int thisType) {
break;
case ENC_TYPE_UNKNOWN:
default:
Serial.println("Unknown");
Serial.print("Unknown (");
Serial.print(thisType);
Serial.println(")");
break;
}
}
Expand Down
7 changes: 6 additions & 1 deletion examples/ScanNetworksAdvanced/ScanNetworksAdvanced.ino
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ void printEncryptionType(int thisType) {
case ENC_TYPE_CCMP:
Serial.print("WPA2");
break;
case ENC_TYPE_GCMP:
Serial.print("WPA3");
break;
case ENC_TYPE_NONE:
Serial.print("None");
break;
Expand All @@ -111,7 +114,9 @@ void printEncryptionType(int thisType) {
break;
case ENC_TYPE_UNKNOWN:
default:
Serial.print("Unknown");
Serial.print("Unknown (");
Serial.print(thisType);
Serial.print(")");
break;
}
}
Expand Down
6 changes: 5 additions & 1 deletion src/utility/wl_definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,14 @@ typedef enum {
} wl_status_t;

/* Encryption modes */
enum wl_enc_type { /* Values map to 802.11 encryption suites... */
enum wl_enc_type { /* Values map to 802.11 Cipher Algorithm Identifier */
ENC_TYPE_WEP = 5,
ENC_TYPE_TKIP = 2,
ENC_TYPE_WPA = ENC_TYPE_TKIP,
ENC_TYPE_CCMP = 4,
ENC_TYPE_WPA2 = ENC_TYPE_CCMP,
ENC_TYPE_GCMP = 6,
ENC_TYPE_WPA3 = ENC_TYPE_GCMP,
/* ... except these two, 7 and 8 are reserved in 802.11-2007 */
ENC_TYPE_NONE = 7,
ENC_TYPE_AUTO = 8,
Expand Down