FreeBSD/lib/lib80211/lib80211_ioctl.c
/*
 * These implement basic net80211 accessor methods to wrap the IOCTL
 * calls.
 */
These implement basic net80211 accessor methods to wrap the IOCTL
calls.
These implement basic net80211 accessor methods to wrap the IOCTL calls .
int
lib80211_get80211(int s, const char *name, int type, void *data, int len)
{
	struct ieee80211req ireq;
	(void) memset(&ireq, 0, sizeof(ireq));
	(void) strncpy(ireq.i_name, name, sizeof(ireq.i_name));
	ireq.i_type = type;
	ireq.i_data = data;
	ireq.i_len = len;
	return ioctl(s, SIOCG80211, &ireq);
}
int lib80211_get80211 ( int s , const char * name , int type , void * data , int len ) { struct ieee80211req ireq ; ( void ) memset ( & ireq , 0 , sizeof ( ireq ) ) ; ( void ) strncpy ( ireq . i_name , name , sizeof ( ireq . i_name ) ) ; ireq . i_type = type ; ireq . i_data = data ; ireq . i_len = len ; return ioctl ( s , SIOCG80211 , & ireq ) ; }
These implement basic net80211 accessor methods to wrap the IOCTL
 calls.
These implement basic net80211 accessor methods to wrap the IOCTL calls .