Lines Matching refs:auth
31 /* Queues an auth request to the desired AP */
36 struct ieee80211softmac_auth_queue_item *auth;
47 /* Queue the auth request */
48 auth = (struct ieee80211softmac_auth_queue_item *)
50 if(auth == NULL)
53 auth->net = net;
54 auth->mac = mac;
55 auth->retry = IEEE80211SOFTMAC_AUTH_RETRY_LIMIT;
56 auth->state = IEEE80211SOFTMAC_AUTH_OPEN_REQUEST;
57 INIT_DELAYED_WORK(&auth->work, ieee80211softmac_auth_queue);
63 list_add_tail(&auth->list, &mac->auth_queue);
64 schedule_delayed_work(&auth->work, 0);
71 /* Sends an auth request to the desired AP and handles timeouts */
76 struct ieee80211softmac_auth_queue_item *auth;
80 auth = container_of(work, struct ieee80211softmac_auth_queue_item,
82 net = auth->net;
83 mac = auth->mac;
85 if(auth->retry > 0) {
97 /* add a timeout call so we eventually give up waiting for an auth reply */
98 schedule_delayed_work(&auth->work, IEEE80211SOFTMAC_AUTH_TIMEOUT);
99 auth->retry--;
101 if (ieee80211softmac_send_mgt_frame(mac, auth->net, IEEE80211_STYPE_AUTH, auth->state))
113 cancel_delayed_work(&auth->work); /* just to make sure... */
114 list_del(&auth->list);
117 kfree(auth);
120 /* Sends a response to an auth challenge (for shared key auth). */
132 /* Handle the auth response from the AP
136 ieee80211softmac_auth_resp(struct net_device *dev, struct ieee80211_auth *auth)
149 /* Find correct auth queue item */
154 if (!memcmp(net->bssid, auth->header.addr2, ETH_ALEN))
161 /* Make sure that we've got an auth queue item for this request */
164 dprintkl(KERN_DEBUG PFX "Authentication response received from "MAC_FMT" but no queue item exists.\n", MAC_ARG(auth->header.addr2));
172 dprintkl(KERN_DEBUG PFX "Authentication response received from "MAC_FMT" but did not request authentication.\n",MAC_ARG(auth->header.addr2));
176 /* Parse the auth packet */
177 switch(auth->algorithm) {
181 switch(auth->status) {
201 MAC_ARG(net->bssid), le16_to_cpup(&auth->status));
209 switch(auth->transaction) {
212 data = (u8 *)auth->info_element;
234 /* We reuse the work struct from the auth request here.
237 * we have obviously already sent the initial auth
249 switch(auth->status) {
262 MAC_ARG(net->bssid), le16_to_cpup(&auth->status));
274 printkl(KERN_WARNING PFX "Unhandled Authentication Step: %i\n", auth->transaction);
317 /* Find correct auth queue item, if it exists */
361 /* Send the de-auth packet */