staging: rtl8723au: OnProbeReq23a(): is_valid_p2p_probereq is always false
authorJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 15 Apr 2014 17:44:23 +0000 (19:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Apr 2014 18:04:05 +0000 (11:04 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_mlme_ext.c

index 0264eda4bf62296e8a8bf8973276fa2ee11c433a..dd18dd9f8bfae03962e6797914089e8be627a495 100644 (file)
@@ -669,7 +669,6 @@ OnProbeReq23a(struct rtw_adapter *padapter, struct recv_frame *precv_frame)
        struct sk_buff *skb = precv_frame->pkt;
        struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *) skb->data;
        int len = skb->len;
-       u8 is_valid_p2p_probereq = false;
 
        if (check_fwstate(pmlmepriv, WIFI_STATION_STATE))
                return _SUCCESS;
@@ -693,17 +692,14 @@ OnProbeReq23a(struct rtw_adapter *padapter, struct recv_frame *precv_frame)
        if (!ie)
                goto out;
 
-       if (is_valid_p2p_probereq == false) {
-               if ((ie[1] &&
-                    memcmp(ie + 2, cur->Ssid.ssid, cur->Ssid.ssid_len)) ||
-                   (ie[1] == 0 && pmlmeinfo->hidden_ssid_mode)) {
-                       return _SUCCESS;
-               }
+       if ((ie[1] && memcmp(ie + 2, cur->Ssid.ssid, cur->Ssid.ssid_len)) ||
+           (ie[1] == 0 && pmlmeinfo->hidden_ssid_mode)) {
+               return _SUCCESS;
        }
 
        if (check_fwstate(pmlmepriv, _FW_LINKED) &&
            pmlmepriv->cur_network.join_res)
-               issue_probersp23a(padapter, mgmt->sa, is_valid_p2p_probereq);
+               issue_probersp23a(padapter, mgmt->sa, false);
 
 out:
        return _SUCCESS;