aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscapy/arch/windows/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scapy/arch/windows/__init__.py b/scapy/arch/windows/__init__.py
index 66419708..491cbe72 100755
--- a/scapy/arch/windows/__init__.py
+++ b/scapy/arch/windows/__init__.py
@@ -521,7 +521,8 @@ class NetworkInterface(object):
Only available with Npcap."""
# According to https://nmap.org/npcap/guide/npcap-devguide.html#npcap-feature-dot11
self._check_npcap_requirement()
- return sp.Popen([_WlanHelper, self.guid[1:-1], "channel"], stdout=sp.PIPE).communicate()[0].strip().strip()
+ return sp.Popen([_WlanHelper, self.guid[1:-1], "channel"],
+ stdout=sp.PIPE).communicate()[0].strip()
def setchannel(self, channel):
"""Set the channel of the interface (1-14):