wmi.c (4d4c4dc324b4444d40e9164834044feebaf2d72d) | wmi.c (9d865ee232eccf51950b16f223f4130f7dc06e0f) |
---|---|
1/* 2 * Copyright (c) 2012-2017 Qualcomm Atheros, Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 481 unchanged lines hidden (view full) --- 490 return; 491 } 492 if (evt->cid >= WIL6210_MAX_CID) { 493 wil_err(wil, "Connect CID invalid : %d\n", evt->cid); 494 return; 495 } 496 497 ch = evt->channel + 1; | 1/* 2 * Copyright (c) 2012-2017 Qualcomm Atheros, Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 481 unchanged lines hidden (view full) --- 490 return; 491 } 492 if (evt->cid >= WIL6210_MAX_CID) { 493 wil_err(wil, "Connect CID invalid : %d\n", evt->cid); 494 return; 495 } 496 497 ch = evt->channel + 1; |
498 wil_info(wil, "Connect %pM channel [%d] cid %d\n", 499 evt->bssid, ch, evt->cid); | 498 wil_info(wil, "Connect %pM channel [%d] cid %d aid %d\n", 499 evt->bssid, ch, evt->cid, evt->aid); |
500 wil_hex_dump_wmi("connect AI : ", DUMP_PREFIX_OFFSET, 16, 1, 501 evt->assoc_info, len - sizeof(*evt), true); 502 503 /* figure out IE's */ 504 assoc_req_ie = &evt->assoc_info[evt->beacon_ie_len + 505 assoc_req_ie_offset]; 506 assoc_req_ielen = evt->assoc_req_len - assoc_req_ie_offset; 507 if (evt->assoc_req_len <= assoc_req_ie_offset) { --- 91 unchanged lines hidden (view full) --- 599 cfg80211_new_sta(ndev, evt->bssid, &sinfo, GFP_KERNEL); 600 } else { 601 wil_err(wil, "unhandled iftype %d for CID %d\n", wdev->iftype, 602 evt->cid); 603 goto out; 604 } 605 606 wil->sta[evt->cid].status = wil_sta_connected; | 500 wil_hex_dump_wmi("connect AI : ", DUMP_PREFIX_OFFSET, 16, 1, 501 evt->assoc_info, len - sizeof(*evt), true); 502 503 /* figure out IE's */ 504 assoc_req_ie = &evt->assoc_info[evt->beacon_ie_len + 505 assoc_req_ie_offset]; 506 assoc_req_ielen = evt->assoc_req_len - assoc_req_ie_offset; 507 if (evt->assoc_req_len <= assoc_req_ie_offset) { --- 91 unchanged lines hidden (view full) --- 599 cfg80211_new_sta(ndev, evt->bssid, &sinfo, GFP_KERNEL); 600 } else { 601 wil_err(wil, "unhandled iftype %d for CID %d\n", wdev->iftype, 602 evt->cid); 603 goto out; 604 } 605 606 wil->sta[evt->cid].status = wil_sta_connected; |
607 wil->sta[evt->cid].aid = evt->aid; |
|
607 set_bit(wil_status_fwconnected, wil->status); 608 wil_update_net_queues_bh(wil, NULL, false); 609 610out: 611 if (rc) 612 wil->sta[evt->cid].status = wil_sta_unused; 613 clear_bit(wil_status_fwconnecting, wil->status); 614 mutex_unlock(&wil->mutex); --- 1218 unchanged lines hidden --- | 608 set_bit(wil_status_fwconnected, wil->status); 609 wil_update_net_queues_bh(wil, NULL, false); 610 611out: 612 if (rc) 613 wil->sta[evt->cid].status = wil_sta_unused; 614 clear_bit(wil_status_fwconnecting, wil->status); 615 mutex_unlock(&wil->mutex); --- 1218 unchanged lines hidden --- |