P2P: Add P2P_SET override_pref_op_chan to allow overriding preference
This new P2P_SET parameter uses <op_class>:<channel> format and is used mainly for testing purposes to allow overriding the value of the GO Negotiation Response frame Operating Channel attribute. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
1123bd4834
commit
3a7819f0ad
5 changed files with 36 additions and 1 deletions
|
@ -3034,6 +3034,8 @@ void p2p_flush(struct p2p_data *p2p)
|
|||
p2p->ssid_set = 0;
|
||||
p2ps_prov_free(p2p);
|
||||
p2p_reset_pending_pd(p2p);
|
||||
p2p->override_pref_op_class = 0;
|
||||
p2p->override_pref_channel = 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -5522,6 +5524,14 @@ void p2p_set_own_pref_freq_list(struct p2p_data *p2p,
|
|||
}
|
||||
|
||||
|
||||
void p2p_set_override_pref_op_chan(struct p2p_data *p2p, u8 op_class,
|
||||
u8 chan)
|
||||
{
|
||||
p2p->override_pref_op_class = op_class;
|
||||
p2p->override_pref_channel = chan;
|
||||
}
|
||||
|
||||
|
||||
struct wpabuf * p2p_build_probe_resp_template(struct p2p_data *p2p,
|
||||
unsigned int freq)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue