P2P: Stop listen state when listen-only duration is over
Even after listen duration is over, P2P module remained in P2P_LISTEN_ONLY state, which is blocking station mode scans. Fix this by stopping P2P listen explicitly to update p2p_state to IDLE when listen duration expires. Signed-hostap: Syed Asifful Dayyan <syedd@broadcom.com>
This commit is contained in:
parent
dd850f4a11
commit
0b5fb86a24
3 changed files with 24 additions and 0 deletions
|
@ -1120,6 +1120,18 @@ void p2p_stop_listen_for_freq(struct p2p_data *p2p, int freq)
|
|||
}
|
||||
|
||||
|
||||
void p2p_stop_listen(struct p2p_data *p2p)
|
||||
{
|
||||
if (p2p->state != P2P_LISTEN_ONLY) {
|
||||
p2p_dbg(p2p, "Skip stop_listen since not in listen_only state.");
|
||||
return;
|
||||
}
|
||||
|
||||
p2p_stop_listen_for_freq(p2p, 0);
|
||||
p2p_set_state(p2p, P2P_IDLE);
|
||||
}
|
||||
|
||||
|
||||
void p2p_stop_find(struct p2p_data *p2p)
|
||||
{
|
||||
p2p_stop_find_for_freq(p2p, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue