tests: Use \t instead of \n in discovery_ctrl_char_in_devname

This is needed to allow the SET command to be modified to reject newline
characters.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2016-04-06 01:05:55 +03:00 committed by Jouni Malinen
parent 8721af54e4
commit 596a3fef83

View file

@ -179,7 +179,7 @@ def test_discovery_ctrl_char_in_devname(dev):
dev[1].global_request("SET device_name Device B") dev[1].global_request("SET device_name Device B")
def _test_discovery_ctrl_char_in_devname(dev): def _test_discovery_ctrl_char_in_devname(dev):
dev[1].global_request("SET device_name Device\nB") dev[1].global_request("SET device_name Device\tB")
addr0 = dev[0].p2p_dev_addr() addr0 = dev[0].p2p_dev_addr()
addr1 = dev[1].p2p_dev_addr() addr1 = dev[1].p2p_dev_addr()
res = dev[0].p2p_start_go(freq=2422) res = dev[0].p2p_start_go(freq=2422)