On Thu, 2017-04-27 at 12:45 +0530, Mohammed Shafi Shajakhan wrote:
> From: Mohammed Shafi Shajakhan <moham...@qti.qualcomm.com>
>
> Existing API 'ieee80211_get_sdata_band' returns default 2 GHz band
> even
> if the channel context configuration is NULL. This crashes for
> chipsets
> which support 5 Ghz alone when it tries to access members of 'sband'.
> Channel context configuration can be NULL in multivif case and when
> channel switch is in progress (or) when it fails. Fix this by
> replacing
> the API 'ieee80211_get_sdata_band' with  'ieee80211_get_sband' which
> returns a NULL pointer for sband when the channel configuration is
> NULL.

Makes sense.

Applied, but could you point to the one that actually crashed?

[shafi] thanks johannes, it crashed @

 405                 smps = (sband->ht_cap.cap & IEEE80211_HT_CAP_SM_PS) >>
 406                         IEEE80211_HT_CAP_SM_PS_SHIFT;

Reply via email to