Search Linux Wireless

Re: [PATCH 05/18] wl1251: retry power save entry

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David Gnedt <david.gnedt@xxxxxxxxxxx> writes:

> Port of the power save entry retry code from wl1251 driver version included
> in the Maemo Fremantle kernel.
> This tries to enable power save mode up to 3 times before failing.

[...]

> +		if (wl->psm_entry_retry < WL1251_PSM_ENTRY_RETRIES) {
> +			wl->psm_entry_retry++;
> +			ret = wl1251_ps_set_mode(wl, STATION_POWER_SAVE_MODE);
> +		} else {
> +			wl1251_error("Power save entry failed, giving up");
> +			wl->psm_entry_retry = 0;
> +		}

If firmware fails to send the nullfunc frame, something is wrong with
the connection and we should notify about this to mac80211. At least
wl12xx uses ieee80211_connection_loss(), maybe that's the best option
here?

-- 
Kalle Valo
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux