From: Daniel Drake Date: Thu, 26 May 2011 20:31:08 +0000 (+0100) Subject: libertas: Set command sequence number later to ensure consistency X-Git-Tag: v3.0-rc2~7^2^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71005be40a7fc95edda3cc462361ce0243e4f5fa;p=pandora-kernel.git libertas: Set command sequence number later to ensure consistency Before this patch, the command sequence number is being set before lbs_queue_cmd() adds the command to the queue. However, lbs_queue_cmd() sometimes forces commands to queue-jump (e.g. CMD_802_11_WAKEUP_CONFIRM). It currently does this without considering that sequence numbers might need adjusting to keep things running in order. Fix this by setting the sequence number at a later stage, just before we're actually submitting the command to the hardware. Also fixes a possible race where seqnum was being modified outside of the driver lock. Signed-off-by: Daniel Drake Acked-by: Dan Williams Signed-off-by: John W. Linville --- Reading git-diff-tree failed