mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
auto-t: wpas.py: add freq argument to configurator_start
This forces the configurator to request a new channel during the authentication protocol.
This commit is contained in:
parent
9aae6e2c16
commit
0b36f497c5
@ -268,11 +268,17 @@ class Wpas:
|
|||||||
|
|
||||||
print("DPP Configurator ID: %s. DPP QR ID: %s" % (self._dpp_conf_id, self._dpp_qr_id))
|
print("DPP Configurator ID: %s. DPP QR ID: %s" % (self._dpp_conf_id, self._dpp_qr_id))
|
||||||
|
|
||||||
def dpp_configurator_start(self, ssid, passphrase):
|
def dpp_configurator_start(self, ssid, passphrase, freq=None):
|
||||||
ssid = binascii.hexlify(ssid.encode()).decode()
|
ssid = binascii.hexlify(ssid.encode()).decode()
|
||||||
passphrase = binascii.hexlify(passphrase.encode()).decode()
|
passphrase = binascii.hexlify(passphrase.encode()).decode()
|
||||||
|
|
||||||
self._ctrl_request('DPP_AUTH_INIT peer=%s conf=sta-psk ssid=%s pass=%s' % (self._dpp_qr_id, ssid, passphrase))
|
cmd = 'DPP_AUTH_INIT peer=%s conf=sta-psk ssid=%s pass=%s ' % (self._dpp_qr_id, ssid, passphrase)
|
||||||
|
|
||||||
|
if freq:
|
||||||
|
cmd += 'neg_freq=%u ' % freq
|
||||||
|
|
||||||
|
self._rx_data = []
|
||||||
|
self._ctrl_request(cmd)
|
||||||
self.wait_for_event('DPP-AUTH-SUCCESS')
|
self.wait_for_event('DPP-AUTH-SUCCESS')
|
||||||
self.wait_for_event('DPP-CONF-SENT')
|
self.wait_for_event('DPP-CONF-SENT')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user