コード例 #1
0
ファイル: mlme.c プロジェクト: asmalldev/linux
void cfg80211_auth_timeout(struct net_device *dev, const u8 *addr)
{
	struct wireless_dev *wdev = dev->ieee80211_ptr;
	struct wiphy *wiphy = wdev->wiphy;
	struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy);

	trace_cfg80211_send_auth_timeout(dev, addr);

	nl80211_send_auth_timeout(rdev, dev, addr, GFP_KERNEL);
	cfg80211_sme_auth_timeout(wdev);
}
コード例 #2
0
ファイル: mlme.c プロジェクト: kerryh/cfg80211_v357
void cfg80211_send_auth_timeout(struct net_device *dev, const u8 *addr)
{
    struct wireless_dev *wdev = dev->ieee80211_ptr;
    struct wiphy *wiphy = wdev->wiphy;
    struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy);

    wdev_lock(wdev);

    nl80211_send_auth_timeout(rdev, dev, addr, GFP_KERNEL);
    if (wdev->sme_state == CFG80211_SME_CONNECTING)
        __cfg80211_connect_result(dev, addr, NULL, 0, NULL, 0,
                                  WLAN_STATUS_UNSPECIFIED_FAILURE,
                                  false, NULL);

    wdev_unlock(wdev);
}