---
name: "ieee80211_sta_ps_transition"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/ieee80211_sta_ps_transition"
---

# ieee80211\_sta\_ps\_transition(9)

PS transition for connected sta

## NAME

ieee80211\_sta\_ps\_transition - PS transition for connected sta

## SYNOPSIS

**int ieee80211\_sta\_ps\_transition(struct ieee80211\_sta \*** *sta***, bool** *start***);**

## ARGUMENTS

*sta*

currently connected sta

*start*

start or stop PS

## DESCRIPTION

When operating in AP mode with the **IEEE80211\_HW\_AP\_LINK\_PS** flag set, use this function to inform mac80211 about a connected station entering/leaving PS mode.

This function may not be called in IRQ context or with softirqs enabled.

Calls to this function for a single hardware must be synchronized against each other.

## RETURN

0 on success. -EINVAL when the requested PS mode is already set.

## AUTHOR

**Johannes Berg** \<johannes@sipsolutions.net\>

Author.

## COPYRIGHT
