432
432
/* First : function strictly used inside the kernel */
434
434
/* Handle /proc/net/wireless, called in net/code/dev.c */
435
extern int dev_get_wireless_info(char * buffer, char **start, off_t offset,
435
int dev_get_wireless_info(char *buffer, char **start, off_t offset, int length);
438
437
/* Second : functions that may be called by driver modules */
440
439
/* Send a single event to user space */
441
extern void wireless_send_event(struct net_device * dev,
443
union iwreq_data * wrqu,
440
void wireless_send_event(struct net_device *dev, unsigned int cmd,
441
union iwreq_data *wrqu, const char *extra);
446
443
/* We may need a function to send a stream of events to user space.
447
444
* More on that later... */
449
446
/* Standard handler for SIOCSIWSPY */
450
extern int iw_handler_set_spy(struct net_device * dev,
451
struct iw_request_info * info,
452
union iwreq_data * wrqu,
447
int iw_handler_set_spy(struct net_device *dev, struct iw_request_info *info,
448
union iwreq_data *wrqu, char *extra);
454
449
/* Standard handler for SIOCGIWSPY */
455
extern int iw_handler_get_spy(struct net_device * dev,
456
struct iw_request_info * info,
457
union iwreq_data * wrqu,
450
int iw_handler_get_spy(struct net_device *dev, struct iw_request_info *info,
451
union iwreq_data *wrqu, char *extra);
459
452
/* Standard handler for SIOCSIWTHRSPY */
460
extern int iw_handler_set_thrspy(struct net_device * dev,
461
struct iw_request_info *info,
462
union iwreq_data * wrqu,
453
int iw_handler_set_thrspy(struct net_device *dev, struct iw_request_info *info,
454
union iwreq_data *wrqu, char *extra);
464
455
/* Standard handler for SIOCGIWTHRSPY */
465
extern int iw_handler_get_thrspy(struct net_device * dev,
466
struct iw_request_info *info,
467
union iwreq_data * wrqu,
456
int iw_handler_get_thrspy(struct net_device *dev, struct iw_request_info *info,
457
union iwreq_data *wrqu, char *extra);
469
458
/* Driver call to update spy records */
470
extern void wireless_spy_update(struct net_device * dev,
471
unsigned char * address,
472
struct iw_quality * wstats);
459
void wireless_spy_update(struct net_device *dev, unsigned char *address,
460
struct iw_quality *wstats);
474
462
/************************* INLINE FUNTIONS *************************/