---
name: "wimax_state_change"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/wimax_state_change"
---

# wimax\_state\_change(9)

Set the current state of a WiMAX device

## NAME

wimax\_state\_change - Set the current state of a WiMAX device

## SYNOPSIS

**void wimax\_state\_change(struct wimax\_dev \*** *wimax\_dev***, enum wimax\_st** *new\_state***);**

## ARGUMENTS

*wimax\_dev*

WiMAX device descriptor (properly referenced)

*new\_state*

New state to switch to

## DESCRIPTION

This implements the state changes for the wimax devices. It will

\- verify that the state transition is legal (for now it'll just print a warning if not) according to the table in linux/wimax.h's documentation for 'enum wimax\_st'.

\- perform the actions needed for leaving the current state and whichever are needed for entering the new state.

\- issue a report to user space indicating the new state (and an optional payload with information about the new state).

## NOTE

*wimax\_dev* must be locked

## COPYRIGHT
