Staging: wlan-ng: memsetting the wrong amount of data
[platform/adaptation/renesas_rcar/renesas_kernel.git] / drivers / staging / wlan-ng / cfg80211.c
index fb466f4..d518b31 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) {