Message ID | 1468515040-17664-1-git-send-email-chaitanya.mgit@gmail.com |
---|---|
State | Accepted |
Headers | show |
On Thu, Jul 14, 2016 at 10:20:40PM +0530, Chaitanya TK wrote: > When params->freq is NULL, it leads to a SEGFAULT. > Do no initialize bss->bandwidth if params->freq is NULL. Thanks, applied.
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index b2b27a7..0a6a535 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -3695,7 +3695,7 @@ static int wpa_driver_nl80211_set_ap(void *priv, "nl80211: Frequency set succeeded for ht2040 coex"); bss->bandwidth = params->freq->bandwidth; } - } else if (!beacon_set) { + } else if (!beacon_set && params->freq) { /* * cfg80211 updates the driver on frequence change in AP * mode only at the point when beaconing is started, so