author | Rongjun Chen <rongjun.chen@amlogic.com> | 2017-08-09 08:24:42 (GMT) |
---|---|---|
committer | Frank Chen <frank.chen@amlogic.com> | 2017-08-09 08:34:03 (GMT) |
commit | 12736e2191b36116c5cb6e2b91cf6861f0df6f74 (patch) | |
tree | 5cb61929d8b7eb022952ac3e368469e9d5fc444b | |
parent | a2ec4ae5088008428df12985e9406b9cab32f50b (diff) | |
download | ap6xxx-12736e2191b36116c5cb6e2b91cf6861f0df6f74.zip ap6xxx-12736e2191b36116c5cb6e2b91cf6861f0df6f74.tar.gz ap6xxx-12736e2191b36116c5cb6e2b91cf6861f0df6f74.tar.bz2 |
wifi:fix wifi stop call trace issue [1/1]
PD# 149013
Change-Id: Id338d5fb2c30ac1362d4999b97bc5447bb48e810
wifi:fix wifi stop call trace issue
-rw-r--r-- | bcmdhd.1.363.59.144.x.cn/wl_cfg80211.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bcmdhd.1.363.59.144.x.cn/wl_cfg80211.c b/bcmdhd.1.363.59.144.x.cn/wl_cfg80211.c index db1c77e..65b6895 100644 --- a/bcmdhd.1.363.59.144.x.cn/wl_cfg80211.c +++ b/bcmdhd.1.363.59.144.x.cn/wl_cfg80211.c @@ -14495,7 +14495,12 @@ _Pragma("GCC diagnostic pop") wl_destroy_event_handler(cfg); mutex_lock(&cfg->usr_sync); wl_flush_eq(cfg); - wl_link_down(cfg); + + if (cfg->link_up) { //army fix wifi stop call trace issue + cfg80211_disconnected(ndev, 0, NULL, 0, GFP_KERNEL); + wl_link_down(cfg); + } + if (cfg->p2p_supported) { if (timer_pending(&cfg->p2p->listen_timer)) del_timer_sync(&cfg->p2p->listen_timer); |