source: projects/specs/trunk/nonfree/self-build-broadcom-wl/19-linux412.patch @ 11261

Revision 11261, 2.2 KB checked in by ara_t, 6 years ago (diff)

update: self-build-broadcom-wl

  • a/amd64/src/wl/sys/wl_cfg80211_hybrid.c

    old new u32 wl_dbg_level = WL_DBG_ERR; 
    5353#endif 
    5454 
    5555static s32 wl_cfg80211_change_iface(struct wiphy *wiphy, struct net_device *ndev, 
    56            enum nl80211_iftype type, u32 *flags, struct vif_params *params); 
     56           enum nl80211_iftype type, 
     57#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0) 
     58           u32 *flags, 
     59#endif 
     60           struct vif_params *params); 
    5761#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0) 
    5862static s32 
    5963wl_cfg80211_scan(struct wiphy *wiphy, 
    wl_dev_ioctl(struct net_device *dev, u32 
    466470 
    467471static s32 
    468472wl_cfg80211_change_iface(struct wiphy *wiphy, struct net_device *ndev, 
    469                          enum nl80211_iftype type, u32 *flags, 
    470    struct vif_params *params) 
     473                         enum nl80211_iftype type, 
     474#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0) 
     475                         u32 *flags, 
     476#endif 
     477                         struct vif_params *params) 
    471478{ 
    472479        struct wl_cfg80211_priv *wl = wiphy_to_wl(wiphy); 
    473480        struct wireless_dev *wdev; 
    wl_bss_roaming_done(struct wl_cfg80211_p 
    23872394                    const wl_event_msg_t *e, void *data) 
    23882395{ 
    23892396        struct wl_cfg80211_connect_info *conn_info = wl_to_conn(wl); 
     2397#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) 
     2398        struct cfg80211_roam_info roam_info = { 
     2399                .bssid = wl->profile->bssid, 
     2400                .req_ie = conn_info->req_ie, 
     2401                .req_ie_len = conn_info->req_ie_len, 
     2402                .resp_ie = conn_info->resp_ie, 
     2403                .resp_ie_len = conn_info->resp_ie_len, 
     2404        }; 
     2405#endif 
    23902406        s32 err = 0; 
    23912407 
    23922408        err = wl_get_assoc_ies(wl); 
    wl_bss_roaming_done(struct wl_cfg80211_p 
    24012417                return err; 
    24022418 
    24032419        cfg80211_roamed(ndev, 
     2420#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) 
     2421                        &roam_info, 
     2422#else 
    24042423#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 39) 
    24052424                        &wl->conf->channel,       
    24062425#endif 
    24072426                        (u8 *)&wl->bssid, 
    24082427                        conn_info->req_ie, conn_info->req_ie_len, 
    2409                         conn_info->resp_ie, conn_info->resp_ie_len, GFP_KERNEL); 
     2428                        conn_info->resp_ie, conn_info->resp_ie_len, 
     2429#endif 
     2430                        GFP_KERNEL); 
    24102431        WL_DBG(("Report roaming result\n")); 
    24112432 
    24122433        set_bit(WL_STATUS_CONNECTED, &wl->status); 
Note: See TracBrowser for help on using the repository browser.