<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/net/mac80211/wep.c, branch linux-3.18.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.18.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.18.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2015-06-10T17:42:29Z</updated>
<entry>
<title>mac80211: move WEP tailroom size check</title>
<updated>2015-06-10T17:42:29Z</updated>
<author>
<name>Janusz Dziedzic</name>
</author>
<published>2015-05-11T09:31:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1007d14382998cf46e782daa83d04fb309de1e73'/>
<id>urn:sha1:1007d14382998cf46e782daa83d04fb309de1e73</id>
<content type='text'>
[ Upstream commit 47b4e1fc4972cc43a19121bc2608a60aef3bf216 ]

Remove checking tailroom when adding IV as it uses only
headroom, and move the check to the ICV generation that
actually needs the tailroom.

In other case I hit such warning and datapath don't work,
when testing:
- IBSS + WEP
- ath9k with hw crypt enabled
- IPv6 data (ping6)

WARNING: CPU: 3 PID: 13301 at net/mac80211/wep.c:102 ieee80211_wep_add_iv+0x129/0x190 [mac80211]()
[...]
Call Trace:
[&lt;ffffffff817bf491&gt;] dump_stack+0x45/0x57
[&lt;ffffffff8107746a&gt;] warn_slowpath_common+0x8a/0xc0
[&lt;ffffffff8107755a&gt;] warn_slowpath_null+0x1a/0x20
[&lt;ffffffffc09ae109&gt;] ieee80211_wep_add_iv+0x129/0x190 [mac80211]
[&lt;ffffffffc09ae7ab&gt;] ieee80211_crypto_wep_encrypt+0x6b/0xd0 [mac80211]
[&lt;ffffffffc09d3fb1&gt;] invoke_tx_handlers+0xc51/0xf30 [mac80211]
[...]

Cc: stable@vger.kernel.org
Signed-off-by: Janusz Dziedzic &lt;janusz.dziedzic@tieto.com&gt;
Signed-off-by: Johannes Berg &lt;johannes.berg@intel.com&gt;
Signed-off-by: Sasha Levin &lt;sasha.levin@oracle.com&gt;
</content>
</entry>
<entry>
<title>mac80211: remove weak WEP IV accounting</title>
<updated>2014-06-23T09:05:31Z</updated>
<author>
<name>Johannes Berg</name>
</author>
<published>2014-06-04T15:06:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ba9030c20a2def223d9b993cb3dfdd3aab3d2b31'/>
<id>urn:sha1:ba9030c20a2def223d9b993cb3dfdd3aab3d2b31</id>
<content type='text'>
Since WEP is practically dead, there seems very little
point in keeping WEP weak IV accounting.

Signed-off-by: Johannes Berg &lt;johannes.berg@intel.com&gt;
</content>
</entry>
<entry>
<title>wireless: move crypto constants to ieee80211.h</title>
<updated>2013-05-16T20:39:41Z</updated>
<author>
<name>Johannes Berg</name>
</author>
<published>2013-05-08T11:09:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4325f6caad98c075b39f0eaaac6693a0dd43f646'/>
<id>urn:sha1:4325f6caad98c075b39f0eaaac6693a0dd43f646</id>
<content type='text'>
mac80211 and the Intel drivers all define crypto
constants, move them to ieee80211.h instead.

Reviewed-by: Emmanuel Grumbach &lt;emmanuel.grumbach@intel.com&gt;
Signed-off-by: Johannes Berg &lt;johannes.berg@intel.com&gt;
</content>
</entry>
<entry>
<title>mac80211: fix network header location when adding encryption headers</title>
<updated>2012-05-16T16:47:43Z</updated>
<author>
<name>Arik Nemtsov</name>
</author>
<published>2012-05-10T10:21:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7863157d83763a0f1b9ad96c94a1ed3d0372526a'/>
<id>urn:sha1:7863157d83763a0f1b9ad96c94a1ed3d0372526a</id>
<content type='text'>
Update the location of the network header when adding encryption
specific headers to a skb. This allows low-level drivers to use the
(now correct) location of the network header.

Signed-off-by: Arik Nemtsov &lt;arik@wizery.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>mac80211: Add IV-room in the skb for TKIP and WEP</title>
<updated>2012-05-16T16:46:37Z</updated>
<author>
<name>Janusz.Dziedzic@tieto.com</name>
</author>
<published>2012-05-09T05:11:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ee70108fa2a7688dc67bfedaeb0c8c46a221effb'/>
<id>urn:sha1:ee70108fa2a7688dc67bfedaeb0c8c46a221effb</id>
<content type='text'>
Add IV-room in skb also for TKIP and WEP.
Extend patch: "mac80211: support adding IV-room in the skb for CCMP keys"

Signed-off-by: Janusz Dziedzic &lt;janusz.dziedzic@tieto.com&gt;
Acked-by: Johannes Berg &lt;johannes@sipsolutions.net&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>mac80211: linearize SKBs as needed for crypto</title>
<updated>2012-03-13T18:54:17Z</updated>
<author>
<name>Johannes Berg</name>
</author>
<published>2012-03-12T12:49:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a8286911881948c7a2ecc63ee4224c258cce2da3'/>
<id>urn:sha1:a8286911881948c7a2ecc63ee4224c258cce2da3</id>
<content type='text'>
Not linearizing every SKB will help actually pass
non-linear SKBs all the way up when on an encrypted
connection. For now, linearize TKIP completely as
it is lower performance and I don't quite grok all
the details.

Signed-off-by: Johannes Berg &lt;johannes.berg@intel.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>mac80211: move RX WEP weak IV counting</title>
<updated>2012-03-13T18:54:16Z</updated>
<author>
<name>Johannes Berg</name>
</author>
<published>2012-03-12T12:49:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=617bbde878604adfcd557fc2a8952f77ab4ebd95'/>
<id>urn:sha1:617bbde878604adfcd557fc2a8952f77ab4ebd95</id>
<content type='text'>
This is better done inside the WEP decrypt
function where it doesn't have to check all
the conditions any more since they've been
tested already.

Signed-off-by: Johannes Berg &lt;johannes.berg@intel.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>mac80211: use skb list for fragments</title>
<updated>2011-11-21T21:20:42Z</updated>
<author>
<name>Johannes Berg</name>
</author>
<published>2011-11-16T14:28:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=252b86c43225d067468dd182e9ae616ad2532bc8'/>
<id>urn:sha1:252b86c43225d067468dd182e9ae616ad2532bc8</id>
<content type='text'>
We are currently linking the skbs by using skb-&gt;next
directly. This works, but the preferred way is to use
a struct sk_buff_head instead. That also prepares for
passing that to drivers directly.

While at it I noticed we calculate the duration for
fragments twice -- remove one of them.

Signed-off-by: Johannes Berg &lt;johannes.berg@intel.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>mac80211: remove the dependency on crypto_blkcipher</title>
<updated>2011-04-04T20:20:00Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2011-03-25T20:39:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5f9f1812b68a2979bc97399cd4954f1c191986af'/>
<id>urn:sha1:5f9f1812b68a2979bc97399cd4954f1c191986af</id>
<content type='text'>
The only thing that using crypto_blkcipher with ecb does over just using
arc4 directly is wrapping the encrypt/decrypt function into a for loop,
looping over each individual character.
To be able to do this, it pulls in around 40 kb worth of unnecessary
kernel modules (at least on a MIPS embedded device).
Using arc4 directly not only eliminates those dependencies, it also makes
the code smaller.

Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>mac80211: don't kmalloc 16 bytes</title>
<updated>2010-10-11T19:04:23Z</updated>
<author>
<name>Johannes Berg</name>
</author>
<published>2010-10-10T16:52:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=730bd83b036e72b0134352ca27e76ea08475fbf1'/>
<id>urn:sha1:730bd83b036e72b0134352ca27e76ea08475fbf1</id>
<content type='text'>
Since this small buffer isn't used for DMA,
we can simply allocate it on the stack, it
just needs to be 16 bytes of which only 8
will be used for WEP40 keys.

Signed-off-by: Johannes Berg &lt;johannes.berg@intel.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
</feed>
