From: Karl Beldan Date: Thu, 24 Oct 2013 13:53:32 +0000 (+0200) Subject: mac80211: do not compute offset from ssn in Rx AMPDU reordering buffer X-Git-Tag: v3.14-rc1~94^2~334^2^2~171 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e3049b79cb98018abc83383f9b737508240dd54;p=pandora-kernel.git mac80211: do not compute offset from ssn in Rx AMPDU reordering buffer Currently, frames that go into the reordering buffer are stored at index ieee80211_sn_sub(sn, tid_rx->ssn) % tid_rx->buf_size. The offset calculation to the starting sequence number (SSN) is useless and just adds overhead so simply use sn % tid_rx->buf_size. This means the reordering buffer will start to be filled somewhere in the middle (at SSN % buf_size) and continue to get used from there, but there's no reason to start from the beginning. Signed-off-by: Karl Beldan [rewrite commit message] Signed-off-by: Johannes Berg --- Reading git-diff-tree failed