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