Skip to content
Snippets Groups Projects
Commit 9c050294 authored by Pierre LALET's avatar Pierre LALET
Browse files

Remove unnecessary .split() call (@karpierz)

parent 29866343
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment