MCPcopy Index your code
hub / github.com/secdev/scapy / setmodulation

Method setmodulation

scapy/arch/windows/__init__.py:507–539  ·  view source on GitHub ↗

Set the interface modulation. It can be: - 0: dsss - 1: fhss - 2: irbaseband - 3: ofdm - 4: hrdss - 5: erp - 6: ht - 7: vht - 8: ihv - 9: mimo-ofdm - 10: mimo-ofdm - th

(self, modu)

Source from the content-addressed store, hash-verified

505 return self._npcap_get("modu")
506
507 def setmodulation(self, modu):
508 # type: (int) -> bool
509 """Set the interface modulation. It can be:
510 - 0: dsss
511 - 1: fhss
512 - 2: irbaseband
513 - 3: ofdm
514 - 4: hrdss
515 - 5: erp
516 - 6: ht
517 - 7: vht
518 - 8: ihv
519 - 9: mimo-ofdm
520 - 10: mimo-ofdm
521 - the value directly
522 Only available with Npcap."""
523 # According to https://nmap.org/npcap/guide/npcap-devguide.html#npcap-feature-dot11 # noqa: E501
524 self._check_npcap_requirement()
525 _modus = {
526 0: "dsss",
527 1: "fhss",
528 2: "irbaseband",
529 3: "ofdm",
530 4: "hrdss",
531 5: "erp",
532 6: "ht",
533 7: "vht",
534 8: "ihv",
535 9: "mimo-ofdm",
536 10: "mimo-ofdm",
537 }
538 m = _modus.get(modu, "unknown") if isinstance(modu, int) else modu
539 return self._npcap_set("modu", str(m))
540
541
542class WindowsInterfacesProvider(InterfaceProvider):

Callers

nothing calls this directly

Calls 3

_npcap_setMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected