wimax/i2400m: introduce module parameter to disable entering power save
The i2400m driver waits for the device to report being ready for entering power save before asking it to do so. This module parameter allows control of said operation; if disabled, the driver won't ask the device to enter power save mode. This is useful in setups where power saving is not so important or when the overhead imposed by network reentry after power save is not acceptable; by combining this with parameter 'idle_mode_disabled', the driver will always maintain both the connection and the device in active state. Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
This commit is contained in:
@@ -505,8 +505,15 @@ void i2400m_report_hook(struct i2400m *i2400m,
|
||||
* it. */
|
||||
case I2400M_MT_REPORT_POWERSAVE_READY: /* zzzzz */
|
||||
if (l3l4_hdr->status == cpu_to_le16(I2400M_MS_DONE_OK)) {
|
||||
d_printf(1, dev, "ready for powersave, requesting\n");
|
||||
i2400m_cmd_enter_powersave(i2400m);
|
||||
if (i2400m_power_save_disabled)
|
||||
d_printf(1, dev, "ready for powersave, "
|
||||
"not requesting (disabled by module "
|
||||
"parameter)\n");
|
||||
else {
|
||||
d_printf(1, dev, "ready for powersave, "
|
||||
"requesting\n");
|
||||
i2400m_cmd_enter_powersave(i2400m);
|
||||
}
|
||||
}
|
||||
break;
|
||||
};
|
||||
|
Reference in New Issue
Block a user