diff options
| author | Ahmad Kholaif <akholaif@qca.qualcomm.com> | 2015-07-24 00:07:55 +0000 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-04-01 16:44:04 +0530 |
| commit | 1e08971278e3865ed55b5ae13d0a990f234ebf98 (patch) | |
| tree | 62bb6e817bfaa89655876715c26c214398b35188 /wpa_supplicant | |
| parent | d8b6aff1de2a3560a15f7a2bdc3661d5b5b19394 (diff) | |
| download | android_external_wpa_supplicant_8-1e08971278e3865ed55b5ae13d0a990f234ebf98.tar.gz android_external_wpa_supplicant_8-1e08971278e3865ed55b5ae13d0a990f234ebf98.tar.bz2 android_external_wpa_supplicant_8-1e08971278e3865ed55b5ae13d0a990f234ebf98.zip | |
P2P: Inform driver of the operating channel following group formation
Upon GO Negotiation completion, if the remote peer becomes GO, send a
hint event over QCA vendor specific interface to inform the driver of
the likely operating channel of the P2P GO.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Git-commit: 7c813acf9ca69f3c6d442ce820237249a6216201
Git-repo : git://w1.fi/srv/git/hostap.git
Change-Id: Ic3cbb824e1c8bac94839cde7819de75a03d75765
CRs-Fixed: 842468
Diffstat (limited to 'wpa_supplicant')
| -rw-r--r-- | wpa_supplicant/driver_i.h | 8 | ||||
| -rw-r--r-- | wpa_supplicant/p2p_supplicant.c | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h index d7a2676e..9dab27b9 100644 --- a/wpa_supplicant/driver_i.h +++ b/wpa_supplicant/driver_i.h @@ -900,4 +900,12 @@ static inline int wpa_drv_abort_scan(struct wpa_supplicant *wpa_s) return wpa_s->driver->abort_scan(wpa_s->drv_priv); } +static inline int wpa_drv_set_prob_oper_freq(struct wpa_supplicant *wpa_s, + unsigned int freq) +{ + if (!wpa_s->driver->set_prob_oper_freq) + return 0; + return wpa_s->driver->set_prob_oper_freq(wpa_s->drv_priv, freq); +} + #endif /* DRIVER_I_H */ diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index 7e4b9134..2f85f0fd 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -2081,6 +2081,11 @@ static void wpas_go_neg_completed(void *ctx, struct p2p_go_neg_results *res) return; } + if (!res->role_go) { + /* Inform driver of the operating channel of GO. */ + wpa_drv_set_prob_oper_freq(wpa_s, res->freq); + } + if (wpa_s->p2p_go_ht40) res->ht40 = 1; if (wpa_s->p2p_go_vht) |
