File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
drivers/net/wireless/broadcom/brcm80211/brcmfmac Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1466,8 +1466,8 @@ int brcmf_p2p_notify_action_frame_rx(struct brcmf_if *ifp,
1466
1466
ETH_ALEN );
1467
1467
memcpy (mgmt_frame -> sa , e -> addr , ETH_ALEN );
1468
1468
mgmt_frame -> frame_control = cpu_to_le16 (IEEE80211_STYPE_ACTION );
1469
- memcpy (& mgmt_frame -> u , frame , mgmt_frame_len );
1470
- mgmt_frame_len += offsetof(struct ieee80211_mgmt , u );
1469
+ memcpy (mgmt_frame -> u . body , frame , mgmt_frame_len );
1470
+ mgmt_frame_len += offsetof(struct ieee80211_mgmt , u . body );
1471
1471
1472
1472
freq = ieee80211_channel_to_frequency (ch .control_ch_num ,
1473
1473
ch .band == BRCMU_CHAN_BAND_2G ?
Original file line number Diff line number Diff line change @@ -1356,6 +1356,7 @@ struct ieee80211_mgmt {
1356
1356
} __packed wnm_timing_msr ;
1357
1357
} u ;
1358
1358
} __packed action ;
1359
+ DECLARE_FLEX_ARRAY (u8 , body ); /* Generic frame body */
1359
1360
} u ;
1360
1361
} __packed __aligned (2 );
1361
1362
You can’t perform that action at this time.
0 commit comments