'\" t .\" Title: wimax_rfkill .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "WIMAX_RFKILL" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Linux Networking" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" wimax_rfkill \- Set the software RF switch state for a WiMAX device .SH "SYNOPSIS" .HP \w'int\ wimax_rfkill('u .BI "int wimax_rfkill(struct\ wimax_dev\ *\ " "wimax_dev" ", enum\ wimax_rf_state\ " "state" ");" .SH "ARGUMENTS" .PP \fIwimax_dev\fR .RS 4 WiMAX device descriptor .RE .PP \fIstate\fR .RS 4 New RF state\&. .RE .SH "RETURN" .PP .PP >= 0 toggle state if ok, < 0 errno code on error\&. The toggle state is returned as a bitmap, bit 0 being the hardware RF state, bit 1 the software RF state\&. .PP 0 means disabled (\fBWIMAX_RF_ON\fR, radio on), 1 means enabled radio off (\fBWIMAX_RF_OFF\fR)\&. .SH "DESCRIPTION" .PP .PP Called by the user when he wants to request the WiMAX radio to be switched on (\fBWIMAX_RF_ON\fR) or off (\fBWIMAX_RF_OFF\fR)\&. With \fBWIMAX_RF_QUERY\fR, just the current state is returned\&. .SH "NOTE" .PP .PP This call will block until the operation is complete\&. .SH "COPYRIGHT" .br