aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/rndis_wlan.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c
index c0c6d66f7d95..9d9750dbec84 100644
--- a/drivers/net/wireless/rndis_wlan.c
+++ b/drivers/net/wireless/rndis_wlan.c
@@ -2821,14 +2821,16 @@ static void rndis_wlan_pmkid_cand_list_indication(struct usbnet *usbdev,
2821 return; 2821 return;
2822 2822
2823 for (i = 0; i < le32_to_cpu(cand_list->num_candidates); i++) { 2823 for (i = 0; i < le32_to_cpu(cand_list->num_candidates); i++) {
2824 struct iw_pmkid_cand pcand;
2825 union iwreq_data wrqu;
2826 struct ndis_80211_pmkid_candidate *cand = 2824 struct ndis_80211_pmkid_candidate *cand =
2827 &cand_list->candidate_list[i]; 2825 &cand_list->candidate_list[i];
2828 2826
2829 devdbg(usbdev, "cand[%i]: flags: 0x%08x, bssid: %pM", 2827 devdbg(usbdev, "cand[%i]: flags: 0x%08x, bssid: %pM",
2830 i, le32_to_cpu(cand->flags), cand->bssid); 2828 i, le32_to_cpu(cand->flags), cand->bssid);
2831 2829
2830#if 0
2831 struct iw_pmkid_cand pcand;
2832 union iwreq_data wrqu;
2833
2832 memset(&pcand, 0, sizeof(pcand)); 2834 memset(&pcand, 0, sizeof(pcand));
2833 if (le32_to_cpu(cand->flags) & 0x01) 2835 if (le32_to_cpu(cand->flags) & 0x01)
2834 pcand.flags |= IW_PMKID_CAND_PREAUTH; 2836 pcand.flags |= IW_PMKID_CAND_PREAUTH;
@@ -2839,6 +2841,7 @@ static void rndis_wlan_pmkid_cand_list_indication(struct usbnet *usbdev,
2839 wrqu.data.length = sizeof(pcand); 2841 wrqu.data.length = sizeof(pcand);
2840 wireless_send_event(usbdev->net, IWEVPMKIDCAND, &wrqu, 2842 wireless_send_event(usbdev->net, IWEVPMKIDCAND, &wrqu,
2841 (u8 *)&pcand); 2843 (u8 *)&pcand);
2844#endif
2842 } 2845 }
2843} 2846}
2844 2847