net: wireless: bcmdhd: Add WIPHY_FLAG_SUPPORTS_FW_ROAM flag
authorDmitry Shmidt <dimitrysh@google.com>
Mon, 23 Jan 2012 20:47:21 +0000 (12:47 -0800)
committerDmitry Shmidt <dimitrysh@google.com>
Fri, 27 Jan 2012 23:32:32 +0000 (15:32 -0800)
Adding this flag will allow NL80211_ATTR_ROAM_SUPPORT, and will set
  WPA_DRIVER_FLAGS_BSS_SELECTION flag in wpa_supplicant

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcmdhd/wl_cfg80211.c

index 23aee57d745df9d9eca305d7a52a26d81012e798..e026a7db28a986771d35357ab4332936568de388 100644 (file)
@@ -4114,7 +4114,9 @@ static struct wireless_dev *wl_alloc_wdev(struct device *sdiofunc_dev)
                WIPHY_FLAG_SUPPORTS_SEPARATE_DEFAULT_KEYS |
 #endif
                WIPHY_FLAG_4ADDR_STATION;
-
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
+       wdev->wiphy->flags |= WIPHY_FLAG_SUPPORTS_FW_ROAM;
+#endif
        WL_DBG(("Registering custom regulatory)\n"));
        wdev->wiphy->flags |= WIPHY_FLAG_CUSTOM_REGULATORY;
        wiphy_apply_custom_regulatory(wdev->wiphy, &brcm_regdom);