mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
mac80211_hwsim: fixes kernel crash during mac80211_hwsim init
Creating radios during startup follows a different code path than HWSIM_CMD_NEW_RADIO. The problem was that param.iftypes was not being set to the deafult before calling mac80211_hwsim_new_radio Signed-off-by: James Prestwood <james.prestwood@linux.intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
ecbc12ad6b
commit
082b12d4e5
1 changed files with 1 additions and 0 deletions
|
|
@ -3884,6 +3884,7 @@ static int __init init_mac80211_hwsim(void)
|
|||
|
||||
param.p2p_device = support_p2p_device;
|
||||
param.use_chanctx = channels > 1;
|
||||
param.iftypes = HWSIM_IFTYPE_SUPPORT_MASK;
|
||||
|
||||
err = mac80211_hwsim_new_radio(NULL, ¶m);
|
||||
if (err < 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue