net: wireless: bcmdhd: Update wireless stack pm mode
Dmitry Shmidt [Tue, 6 Nov 2012 18:53:03 +0000 (10:53 -0800)]
Change-Id: Iadf400f113884001894dca7cf098f971190765d1
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

drivers/net/wireless/bcmdhd/wl_cfg80211.c

index 57fcbea..231485a 100644 (file)
@@ -7904,6 +7904,8 @@ static s32 wl_notifier_change_state(struct wl_priv *wl, struct net_info *_net_in
                                                                WL_ERR(("error"
                                                                        " (%d)\n", err));
                                                                break;
+                                               } else {
+                                                       wl_cfg80211_update_power_mode(iter->ndev);
                                                }
                                        }
                                        if (connected_cnt  > 1) {
@@ -7971,6 +7973,8 @@ static s32 wl_notifier_change_state(struct wl_priv *wl, struct net_info *_net_in
                                                                WL_ERR(("error"
                                                                        " (%d)\n", err));
                                                        break;
+                                               } else {
+                                                       wl_cfg80211_update_power_mode(iter->ndev);
                                                }
                                        }
                                }