/* * Copyright (c) 2014 Redpine Signals Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* This function is used to disable power save */ void rsi_disable_ps(struct rsi_hw *adapter, struct ieee80211_vif *vif)
{ if (adapter->ps_state != PS_ENABLED) {
rsi_dbg(ERR_ZONE, "%s: Cannot accept disable PS in %s state\n",
__func__, str_psstate(adapter->ps_state)); return;
}
if (rsi_send_ps_request(adapter, false, vif)) {
rsi_dbg(ERR_ZONE, "%s: Failed to send PS request to device\n",
__func__); return;
}
void rsi_conf_uapsd(struct rsi_hw *adapter, struct ieee80211_vif *vif)
{ int ret;
if (adapter->ps_state != PS_ENABLED) return;
ret = rsi_send_ps_request(adapter, false, vif); if (!ret)
ret = rsi_send_ps_request(adapter, true, vif); if (ret)
rsi_dbg(ERR_ZONE, "%s: Failed to send PS request to device\n",
__func__);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.