--- src/src/wl/sys/wl_cfg80211.c 2012-10-15 22:21:14.502040449 +1300 +++ new/src/wl/sys/wl_cfg80211.c 2012-10-15 22:20:09.235380239 +1300 @@ -42,7 +42,7 @@ enum nl80211_iftype type, u32 *flags, struct vif_params *params); static s32 __wl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev, struct cfg80211_scan_request *request, struct cfg80211_ssid *this_ssid); -static s32 wl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev, +static s32 wl_cfg80211_scan(struct wiphy *wiphy, struct cfg80211_scan_request *request); static s32 wl_cfg80211_set_wiphy_params(struct wiphy *wiphy, u32 changed); static s32 wl_cfg80211_join_ibss(struct wiphy *wiphy, struct net_device *dev, @@ -570,10 +570,12 @@ } static s32 -wl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev, +wl_cfg80211_scan(struct wiphy *wiphy, struct cfg80211_scan_request *request) { s32 err = 0; + struct wl_priv *wl = wiphy_to_wl(wiphy); + struct net_device *ndev = wl_to_ndev(wl); CHECK_SYS_UP(); err = __wl_cfg80211_scan(wiphy, ndev, request, NULL);