source: trunk/package/hostapd/patches/300-nl80211_multicall_fixes.patch @ 31515

Last change on this file since 31515 was 31515, checked in by nbd, 4 years ago

hostapd: update to 20120428, fixes some radius issues and wds ap mac address issues

File size: 1.9 KB
  • src/drivers/driver_nl80211.c

    a b static void * wpa_driver_nl80211_init(vo 
    29312931        drv->monitor_sock = -1; 
    29322932        drv->eapol_tx_sock = -1; 
    29332933        drv->ap_scan_as_station = NL80211_IFTYPE_UNSPECIFIED; 
     2934        drv->nlmode = NL80211_IFTYPE_STATION; 
    29342935 
    29352936        if (wpa_driver_nl80211_init_nl(drv)) { 
    29362937                os_free(drv); 
    static void wpa_driver_nl80211_send_rfki 
    32453246        wpa_supplicant_event(timeout_ctx, EVENT_INTERFACE_DISABLED, NULL); 
    32463247} 
    32473248 
    3248  
    32493249static int 
    3250 wpa_driver_nl80211_finish_drv_init(struct wpa_driver_nl80211_data *drv) 
     3250wpa_driver_nl80211_finish_drv_init_sta(struct wpa_driver_nl80211_data *drv, 
     3251                                       int *send_rfkill_event) 
    32513252{ 
    32523253        struct i802_bss *bss = &drv->first_bss; 
    3253         int send_rfkill_event = 0; 
    32543254 
    3255         drv->ifindex = if_nametoindex(bss->ifname); 
    3256         drv->first_bss.ifindex = drv->ifindex; 
    3257  
    3258 #ifndef HOSTAPD 
    32593255        /* 
    32603256         * Make sure the interface starts up in station mode unless this is a 
    32613257         * dynamically added interface (e.g., P2P) that was already configured 
    wpa_driver_nl80211_finish_drv_init(struc 
    32743270                                   "interface '%s' due to rfkill", 
    32753271                                   bss->ifname); 
    32763272                        drv->if_disabled = 1; 
    3277                         send_rfkill_event = 1; 
     3273                        *send_rfkill_event = 1; 
    32783274                } else { 
    32793275                        wpa_printf(MSG_ERROR, "nl80211: Could not set " 
    32803276                                   "interface '%s' UP", bss->ifname); 
    wpa_driver_nl80211_finish_drv_init(struc 
    32843280 
    32853281        netlink_send_oper_ifla(drv->global->netlink, drv->ifindex, 
    32863282                               1, IF_OPER_DORMANT); 
    3287 #endif /* HOSTAPD */ 
     3283} 
     3284 
     3285static int 
     3286wpa_driver_nl80211_finish_drv_init(struct wpa_driver_nl80211_data *drv) 
     3287{ 
     3288        struct i802_bss *bss = &drv->first_bss; 
     3289        int send_rfkill_event = 0; 
     3290 
     3291        drv->ifindex = if_nametoindex(bss->ifname); 
     3292        drv->first_bss.ifindex = drv->ifindex; 
     3293 
     3294        if (drv->nlmode == NL80211_IFTYPE_STATION) 
     3295                wpa_driver_nl80211_finish_drv_init_sta(drv, &send_rfkill_event); 
    32883296 
    32893297        if (wpa_driver_nl80211_capa(drv)) 
    32903298                return -1; 
Note: See TracBrowser for help on using the repository browser.