P2P: Implement power save configuration

wpa_cli p2p_set ps <0/1/2>
wpa_cli p2p_set oppps <0/1>
wpa_cli p2p_set ctwindow <0..> msec
This commit is contained in:
Jouni Malinen 2010-06-23 23:04:21 -07:00 committed by Jouni Malinen
parent 40c03fd40b
commit c381508d88
4 changed files with 32 additions and 1 deletions

View file

@ -1860,6 +1860,17 @@ struct wpa_driver_ops {
* 0.
*/
int (*set_noa)(void *priv, u8 count, int start, int duration);
/**
* set_p2p_powersave - Set P2P power save options
* @priv: Private driver interface data
* @legacy_ps: 0 = disable, 1 = enable, 2 = maximum PS, -1 = no change
* @opp_ps: 0 = disable, 1 = enable, -1 = no change
* @ctwindow: 0.. = change (msec), -1 = no change
* Returns: 0 on success or -1 on failure
*/
int (*set_p2p_powersave)(void *priv, int legacy_ps, int opp_ps,
int ctwindow);
};

View file

@ -3306,5 +3306,6 @@ const struct wpa_driver_ops wpa_driver_ndis_ops = {
NULL /* send_frame */,
NULL /* shared_freq */,
NULL /* get_noa */,
NULL /* set_noa */
NULL /* set_noa */,
NULL /* set_p2p_powersave */
};