mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
Merge "qcacld-3.0: Fix NULL pointer dereferencing in p2p TX MGMT" into wlan-cld3.driver.lnx.1.1-dev
This commit is contained in:
commit
80b98532e8
1 changed files with 4 additions and 2 deletions
|
|
@ -1411,7 +1411,9 @@ int __wlan_hdd_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
|
|||
home_ch = goAdapter->sessionCtx.ap.operatingChannel;
|
||||
}
|
||||
|
||||
if (ieee80211_frequency_to_channel(chan->center_freq) == home_ch) {
|
||||
if (chan &&
|
||||
(ieee80211_frequency_to_channel(chan->center_freq) ==
|
||||
home_ch)) {
|
||||
/* if adapter is already on requested ch, no need for ROC */
|
||||
wait = 0;
|
||||
hddLog(LOG1,
|
||||
|
|
@ -1419,7 +1421,7 @@ int __wlan_hdd_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
|
|||
goto send_frame;
|
||||
}
|
||||
|
||||
if (offchan && wait) {
|
||||
if (offchan && wait && chan) {
|
||||
int status;
|
||||
rem_on_channel_request_type_t req_type = OFF_CHANNEL_ACTION_TX;
|
||||
/* In case of P2P Client mode if we are already */
|
||||
|
|
|
|||
Loading…
Reference in a new issue