ieee80211_ioctl.c (a4bf5fb987611aeb78c422312b63b185e39982d7) | ieee80211_ioctl.c (525065ba9b43f443be3790a4b6ce76ed34c8d9bb) |
---|---|
1/*- 2 * Copyright (c) 2001 Atsushi Onoe 3 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 1504 unchanged lines hidden (view full) --- 1513 return EINVAL; 1514 1515 /* NB: IEEE80211_IOC_SSID call missing for ap_scan=2. */ 1516 memset(vap->iv_des_ssid[0].ssid, 0, IEEE80211_NWID_LEN); 1517 vap->iv_des_ssid[0].len = ssid_len; 1518 memcpy(vap->iv_des_ssid[0].ssid, ssid, ssid_len); 1519 vap->iv_des_nssid = 1; 1520 | 1/*- 2 * Copyright (c) 2001 Atsushi Onoe 3 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 1504 unchanged lines hidden (view full) --- 1513 return EINVAL; 1514 1515 /* NB: IEEE80211_IOC_SSID call missing for ap_scan=2. */ 1516 memset(vap->iv_des_ssid[0].ssid, 0, IEEE80211_NWID_LEN); 1517 vap->iv_des_ssid[0].len = ssid_len; 1518 memcpy(vap->iv_des_ssid[0].ssid, ssid, ssid_len); 1519 vap->iv_des_nssid = 1; 1520 |
1521 memset(&sr, 0, sizeof(sr)); |
|
1521 sr.sr_flags = IEEE80211_IOC_SCAN_ACTIVE | IEEE80211_IOC_SCAN_ONCE; 1522 sr.sr_duration = IEEE80211_IOC_SCAN_FOREVER; 1523 memcpy(sr.sr_ssid[0].ssid, ssid, ssid_len); 1524 sr.sr_ssid[0].len = ssid_len; 1525 sr.sr_nssid = 1; 1526 1527 return ieee80211_scanreq(vap, &sr); 1528} --- 1861 unchanged lines hidden --- | 1522 sr.sr_flags = IEEE80211_IOC_SCAN_ACTIVE | IEEE80211_IOC_SCAN_ONCE; 1523 sr.sr_duration = IEEE80211_IOC_SCAN_FOREVER; 1524 memcpy(sr.sr_ssid[0].ssid, ssid, ssid_len); 1525 sr.sr_ssid[0].len = ssid_len; 1526 sr.sr_nssid = 1; 1527 1528 return ieee80211_scanreq(vap, &sr); 1529} --- 1861 unchanged lines hidden --- |