Abinaya Kalaiselvan 95f83ee8d8 mac80211: fix NULL ptr dereference during mesh peer connection for non HE devices
"sband->iftype_data" is not assigned with any value for non HE supported
devices, which causes NULL pointer access during mesh peer connection
in those devices. Fix this by accessing the pointer after HE
capabilities condition check.

Cc: stable@vger.kernel.org
Fixes: 7f7aa94bcaf0 (mac80211: reduce peer HE MCS/NSS to own capabilities)
Signed-off-by: Abinaya Kalaiselvan <akalaise@codeaurora.org>
Link: https://lore.kernel.org/r/1624459244-4497-1-git-send-email-akalaise@codeaurora.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2021-06-23 18:06:44 +02:00
..
2021-06-02 14:01:55 -07:00
2021-03-30 16:54:50 -07:00
2021-06-03 13:24:23 -07:00
2021-06-02 14:01:55 -07:00
2021-06-07 14:08:30 -07:00
2021-06-22 14:36:01 -07:00
2021-06-07 14:08:30 -07:00
2021-06-22 10:47:32 -07:00
2021-06-02 14:01:55 -07:00
2021-05-27 08:46:19 -04:00
2021-06-03 15:13:56 -07:00