Lines Matching refs:spydata

31 	struct iw_spy_data *	spydata = get_spydata(dev);  in iw_handler_set_spy()  local
35 if (!spydata) in iw_handler_set_spy()
41 spydata->spy_number = 0; in iw_handler_set_spy()
57 memcpy(spydata->spy_address[i], address[i].sa_data, in iw_handler_set_spy()
60 memset(spydata->spy_stat, 0, in iw_handler_set_spy()
68 spydata->spy_number = wrqu->data.length; in iw_handler_set_spy()
79 struct iw_spy_data * spydata = get_spydata(dev); in iw_handler_get_spy() local
84 if (!spydata) in iw_handler_get_spy()
87 wrqu->data.length = spydata->spy_number; in iw_handler_get_spy()
90 for (i = 0; i < spydata->spy_number; i++) { in iw_handler_get_spy()
91 memcpy(address[i].sa_data, spydata->spy_address[i], ETH_ALEN); in iw_handler_get_spy()
95 if (spydata->spy_number > 0) in iw_handler_get_spy()
96 memcpy(extra + (sizeof(struct sockaddr) *spydata->spy_number), in iw_handler_get_spy()
97 spydata->spy_stat, in iw_handler_get_spy()
98 sizeof(struct iw_quality) * spydata->spy_number); in iw_handler_get_spy()
100 for (i = 0; i < spydata->spy_number; i++) in iw_handler_get_spy()
101 spydata->spy_stat[i].updated &= ~IW_QUAL_ALL_UPDATED; in iw_handler_get_spy()
115 struct iw_spy_data * spydata = get_spydata(dev); in iw_handler_set_thrspy() local
119 if (!spydata) in iw_handler_set_thrspy()
123 memcpy(&(spydata->spy_thr_low), &(threshold->low), in iw_handler_set_thrspy()
127 memset(spydata->spy_thr_under, '\0', sizeof(spydata->spy_thr_under)); in iw_handler_set_thrspy()
142 struct iw_spy_data * spydata = get_spydata(dev); in iw_handler_get_thrspy() local
146 if (!spydata) in iw_handler_get_thrspy()
150 memcpy(&(threshold->low), &(spydata->spy_thr_low), in iw_handler_get_thrspy()
162 struct iw_spy_data * spydata, in iw_send_thrspy_event() argument
178 memcpy(&(threshold.low), &(spydata->spy_thr_low), in iw_send_thrspy_event()
196 struct iw_spy_data * spydata = get_spydata(dev); in wireless_spy_update() local
201 if (!spydata) in wireless_spy_update()
205 for (i = 0; i < spydata->spy_number; i++) in wireless_spy_update()
206 if (ether_addr_equal(address, spydata->spy_address[i])) { in wireless_spy_update()
207 memcpy(&(spydata->spy_stat[i]), wstats, in wireless_spy_update()
217 if (spydata->spy_thr_under[match]) { in wireless_spy_update()
218 if (wstats->level > spydata->spy_thr_high.level) { in wireless_spy_update()
219 spydata->spy_thr_under[match] = 0; in wireless_spy_update()
220 iw_send_thrspy_event(dev, spydata, in wireless_spy_update()
224 if (wstats->level < spydata->spy_thr_low.level) { in wireless_spy_update()
225 spydata->spy_thr_under[match] = 1; in wireless_spy_update()
226 iw_send_thrspy_event(dev, spydata, in wireless_spy_update()