|
@@ -1358,10 +1358,7 @@ static int ath10k_mac_setup_bcn_p2p_ie(struct ath10k_vif *arvif,
|
|
const u8 *p2p_ie;
|
|
const u8 *p2p_ie;
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
- if (arvif->vdev_type != WMI_VDEV_TYPE_AP)
|
|
|
|
- return 0;
|
|
|
|
-
|
|
|
|
- if (arvif->vdev_subtype != WMI_VDEV_SUBTYPE_P2P_GO)
|
|
|
|
|
|
+ if (arvif->vif->type != NL80211_IFTYPE_AP || !arvif->vif->p2p)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
mgmt = (void *)bcn->data;
|
|
mgmt = (void *)bcn->data;
|
|
@@ -3259,8 +3256,7 @@ static void ath10k_tx_h_add_p2p_noa_ie(struct ath10k *ar,
|
|
struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
/* This is case only for P2P_GO */
|
|
/* This is case only for P2P_GO */
|
|
- if (arvif->vdev_type != WMI_VDEV_TYPE_AP ||
|
|
|
|
- arvif->vdev_subtype != WMI_VDEV_SUBTYPE_P2P_GO)
|
|
|
|
|
|
+ if (vif->type != NL80211_IFTYPE_AP || !vif->p2p)
|
|
return;
|
|
return;
|
|
|
|
|
|
if (unlikely(ieee80211_is_probe_resp(hdr->frame_control))) {
|
|
if (unlikely(ieee80211_is_probe_resp(hdr->frame_control))) {
|