struct slsi_dev *sdev = SDEV_FROM_WIPHY(wiphy);
u16 scan_type = FAPI_SCANTYPE_FULL_SCAN;
int r = 0;
- u16 p2p_state = sdev->p2p_state;
u8 *scan_ie;
size_t scan_ie_len;
bool strip_wsc = false;
}
}
if (request->n_channels == SLSI_P2P_SOCIAL_CHAN_COUNT || request->n_channels == 1) {
- p2p_state = P2P_SCANNING;
scan_type = FAPI_SCANTYPE_P2P_SCAN_SOCIAL;
ndev_vif->unsync.slsi_p2p_continuous_fullscan = false;
} else if (request->n_channels > SLSI_P2P_SOCIAL_CHAN_COUNT) {
/* Update State only for scan in Device role */
if (SLSI_IS_VIF_INDEX_P2P(ndev_vif) && (!SLSI_IS_P2P_GROUP_STATE(sdev))) {
- SLSI_P2P_STATE_CHANGE(sdev, p2p_state);
+ if (scan_type == FAPI_SCANTYPE_P2P_SCAN_SOCIAL)
+ SLSI_P2P_STATE_CHANGE(sdev, P2P_SCANNING);
} else if (!SLSI_IS_VIF_INDEX_P2P(ndev_vif) && scan_ie_len) {
kfree(ndev_vif->probe_req_ies);
ndev_vif->probe_req_ies = kmalloc(request->ie_len, GFP_KERNEL);