Staging: wlan-ng: memsetting the wrong amount of data
[firefly-linux-kernel-4.4.55.git] / drivers / staging / wlan-ng / cfg80211.c
index fb466f4c92e00794085a6e628bb66a44b1ecf133..d518b315b368b49c618a6e5723544a76ac29df9b 100644 (file)
@@ -356,7 +356,7 @@ int prism2_scan(struct wiphy *wiphy, struct net_device *dev,
        msg1.msgcode = DIDmsg_dot11req_scan;
        msg1.bsstype.data = P80211ENUM_bsstype_any;
 
-       memset(&(msg1.bssid.data), 0xFF, sizeof(p80211item_pstr6_t));
+       memset(&msg1.bssid.data, 0xFF, sizeof(msg1.bssid.data));
        msg1.bssid.data.len = 6;
 
        if (request->n_ssids > 0) {