source: trunk/package/hostapd/patches/451-nl80211_del_beacon_bss.patch @ 31515

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

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

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

    a b wpa_driver_nl80211_finish_drv_init(struc 
    33373337} 
    33383338 
    33393339 
    3340 static int wpa_driver_nl80211_del_beacon(struct wpa_driver_nl80211_data *drv) 
     3340static int wpa_driver_nl80211_del_bss_beacon(struct i802_bss *bss) 
    33413341{ 
     3342        struct wpa_driver_nl80211_data *drv = bss->drv; 
    33423343        struct nl_msg *msg; 
    33433344 
     3345        bss->beacon_set = 0; 
    33443346        msg = nlmsg_alloc(); 
    33453347        if (!msg) 
    33463348                return -ENOMEM; 
    33473349 
    33483350        nl80211_cmd(drv, msg, 0, NL80211_CMD_DEL_BEACON); 
    3349         NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, drv->ifindex); 
     3351        NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, bss->ifindex); 
    33503352 
    33513353        return send_and_recv_msgs(drv, msg, NULL, NULL); 
    33523354 nla_put_failure: 
    static int wpa_driver_nl80211_del_beacon 
    33543356        return -ENOBUFS; 
    33553357} 
    33563358 
     3359static int wpa_driver_nl80211_del_beacon(struct wpa_driver_nl80211_data *drv) 
     3360{ 
     3361        struct i802_bss *bss; 
     3362 
     3363        for (bss = &drv->first_bss; bss; bss = bss->next) 
     3364                wpa_driver_nl80211_del_bss_beacon(bss); 
     3365 
     3366        return 0; 
     3367} 
     3368 
     3369static int wpa_driver_nl80211_stop_ap(void *priv) 
     3370{ 
     3371        struct i802_bss *bss = priv; 
     3372        return wpa_driver_nl80211_del_beacon(bss->drv); 
     3373} 
    33573374 
    33583375/** 
    33593376 * wpa_driver_nl80211_deinit - Deinitialize nl80211 driver interface 
    const struct wpa_driver_ops wpa_driver_n 
    90999116        .send_tdls_mgmt = nl80211_send_tdls_mgmt, 
    91009117        .tdls_oper = nl80211_tdls_oper, 
    91019118#endif /* CONFIG_TDLS */ 
     9119        .stop_ap = wpa_driver_nl80211_stop_ap, 
    91029120}; 
  • src/drivers/driver.h

    a b struct wpa_driver_ops { 
    20072007         */ 
    20082008        int (*probe_req_report)(void *priv, int report); 
    20092009 
     2010 
     2011        int (*stop_ap)(void *priv); 
     2012 
    20102013        /** 
    20112014         * deinit_ap - Deinitialize AP mode 
    20122015         * @priv: Private driver interface data 
Note: See TracBrowser for help on using the repository browser.