aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-07-25 23:20:42 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-07-25 23:20:42 +0000
commitf8318b663ad13729150ad273140e8e6897434be0 (patch)
treef0f59696e302edaefb306e9287236810d301b141
parent83877044eac8118c76a9a15353effb027e0375c9 (diff)
parent6f3aa559f8dd7d90eb80201dd35f0664aa6ceedd (diff)
downloadwpa_supplicant_8-f8318b663ad13729150ad273140e8e6897434be0.tar.gz
Snap for 8867503 from 6f3aa559f8dd7d90eb80201dd35f0664aa6ceedd to tm-qpr1-release
Change-Id: If056fdff199f83fc9b82ab587699ac07ea0cee95
-rw-r--r--wpa_supplicant/p2p_supplicant.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index c8f2e5ca..3c395e94 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -9730,9 +9730,12 @@ static int wpas_p2p_move_go_csa(struct wpa_supplicant *wpa_s)
goto out;
}
- if (conf->hw_mode != wpa_s->ap_iface->current_mode->mode) {
- wpa_dbg(wpa_s, MSG_DEBUG,
- "P2P CSA: CSA to a different band is not supported");
+ if (conf->hw_mode != wpa_s->ap_iface->current_mode->mode &&
+ (wpa_s->ap_iface->current_mode->mode != HOSTAPD_MODE_IEEE80211A ||
+ conf->hw_mode != HOSTAPD_MODE_IEEE80211G)) {
+ wpa_dbg(wpa_s, MSG_INFO,
+ "P2P CSA: CSA from Hardware mode %d to %d is not supported",
+ wpa_s->ap_iface->current_mode->mode, conf->hw_mode);
ret = -1;
goto out;
}