Browse files

wlcore: android: set "any" trigger by default (INTERNAL)

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
  • Loading branch information...
1 parent 2ffc1a8 commit 6ebc4438b0fc351e49d99254833d4fda5bb62fd2 @elp elp committed with ariknem May 23, 2011
Showing with 10 additions and 0 deletions.
  1. +10 −0 net/wireless/core.c
View
10 net/wireless/core.c
@@ -525,6 +525,16 @@ int wiphy_register(struct wiphy *wiphy)
}
#endif
+#ifdef CONFIG_ANDROID
+ /* use wowlan by default */
+ if (rdev->wiphy.wowlan.flags & WIPHY_WOWLAN_ANY) {
+ /* TODO: free wowlan in case we fail later*/
+ rdev->wowlan = kzalloc(sizeof(*rdev->wowlan), GFP_KERNEL);
+ if (!rdev->wowlan)
+ return -ENOMEM;
+ rdev->wowlan->any = true;
+ }
+#endif
/* check and set up bitrates */
ieee80211_set_bitrate_flags(wiphy);

0 comments on commit 6ebc443

Please sign in to comment.