Permalink
Browse files

Correct memset parameter order

  • Loading branch information...
dp111 authored and themiron committed Feb 10, 2019
1 parent 0c1e93f commit ab0e53fb286926245dab3292b01746001e2d724b
@@ -3001,7 +3001,7 @@ bcm_cfg80211_add_ibss_if(struct wiphy *wiphy, char *name)
/* generate a new MAC address for the IBSS interface */
get_primary_mac(cfg, &cfg->ibss_if_addr);
cfg->ibss_if_addr.octet[4] ^= 0x40;
memset(&aibss_if, sizeof(aibss_if), 0);
memset(&aibss_if, 0, sizeof(aibss_if));
memcpy(&aibss_if.addr, &cfg->ibss_if_addr, sizeof(aibss_if.addr));
aibss_if.chspec = 0;
aibss_if.len = sizeof(aibss_if);

0 comments on commit ab0e53f

Please sign in to comment.