Add mechanism for disabling radio for testing purposes
"wpa_cli set radio_disabled 1/0" can be used to disable/enable radio to simulate out-of-radio-range condition in a testbed device. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
56c2588aa8
commit
8b9d0bfa00
3 changed files with 26 additions and 0 deletions
|
@ -2497,6 +2497,18 @@ struct wpa_driver_ops {
|
|||
*/
|
||||
void (*poll_client)(void *priv, const u8 *own_addr,
|
||||
const u8 *addr, int qos);
|
||||
|
||||
/**
|
||||
* radio_disable - Disable/enable radio
|
||||
* @priv: Private driver interface data
|
||||
* @disabled: 1=disable 0=enable radio
|
||||
* Returns: 0 on success, -1 on failure
|
||||
*
|
||||
* This optional command is for testing purposes. It can be used to
|
||||
* disable the radio on a testbed device to simulate out-of-radio-range
|
||||
* conditions.
|
||||
*/
|
||||
int (*radio_disable)(void *priv, int disabled);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue