summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/multi_wlan/01_ap_sta.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/multi_wlan/01_ap_sta.py b/tests/multi_wlan/01_ap_sta.py
index 1a8e80cd3..368addf13 100644
--- a/tests/multi_wlan/01_ap_sta.py
+++ b/tests/multi_wlan/01_ap_sta.py
@@ -96,15 +96,7 @@ def instance1():
print("STA connected")
- # Print the current channel, if the port support this
- try:
- print("channel", sta.config("channel"))
- except OSError as e:
- if "AP" in str(e):
- # ESP8266 only supports reading channel on the AP interface, so fake this result
- print("channel", CHANNEL)
- else:
- raise
+ print("channel", sta.config("channel"))
print("STA waiting for disconnect...")