On Wed, May 21, 2008 at 12:51 AM, Stefanik Gábor <netrolller.3d@xxxxxxxxx> wrote: > On Tue, May 20, 2008 at 5:41 PM, Tomas Winkler <tomasw@xxxxxxxxx> wrote: >> On Tue, May 20, 2008 at 8:01 PM, Stefanik Gábor <netrolller.3d@xxxxxxxxx> wrote: >>> This patch fixes packet injection on iwlwifi devices (iwl3945 and >>> iwl4965). Tested with packetspammer and aireplay-ng, also works in >>> monitor-while-associated mode. If possible, please apply to 2.6.26, >>> else to 2.6.27. The patch is also available as an attachment, in case >>> Gmail decides to word-wrap or whitespace-damage the inline version. >>> >>> Signed-off-by: Gábor Stefanik <netrolller.3d@xxxxxxxxx> >>> --- >>> >>> <snip> >> >> This is certainly no go for 4965. Station must be present in uCode >> table. Maybe this work for monitor mode but there is a race in regular >> cases, when sta_id != broadcast id at least priv->assoc_station_added >> == 1 has to be true. Have you tested it with 4965 ? >> >> I suggest to proceed with 3945 part only of this patch. >> >> Tomas > > Which change does this comment apply to? The "IWL_DEBUG_DROP("Dropping > - !priv->vif\n");" one? Or the "drop all data frame if we are not > associated" one? Also, doesn't the "if (sta_id == > IWL_INVALID_STATION)" part protect against such cases? Also, what > happens if we simply pass broadcast in such a case? > The station can be in driver data structure but it's not guaranties it's also in the uCode. It will return correct station id but the table in uCode will be empty. Retuning to new channel clears the station table in the uCode so it must to be reapplied also you must have applied rate command (LQ). Simply currently there is a window big enough for a race. It can be solved but there is more coding than this patch. Thanks Tomas > -- > Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-) > -- 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