kaloz / mwlwifi

mac80211 driver for the Marvell 88W8864 802.11ac chip
397 stars 119 forks source link

Use wiphy_to_ieee80211_hw() instead of wiphy_priv() #335

Closed nhed closed 5 years ago

nhed commented 5 years ago

Observed a crash when built against a backported environment that tracked to a NULL hw->priv.

https://github.com/torvalds/linux/commit/9a95371aa26e3cb9fb1340362912000088ff3c3e

Note that mac802111 drivers should not use wiphy_priv() to try to get their private driver structure as this is already used internally by mac80211