First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 166300
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Mobile Herd <mobile@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Itay Greenspon <itay.gr@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ieee80211_crypto_ccmp.patch Patch to help madwifi-old compile with kernel 2.6.20 patch Itay Greenspon 2007-02-11 13:59 0000 309 bytes Details | Diff
ieee80211_crypto_ccmp.patch Apply it manualy text/plain Itay Greenspon 2007-02-13 08:41 0000 309 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 166300 depends on: Show dependency tree
Show dependency graph
Bug 166300 blocks: 163825
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-02-11 07:22 0000
Offending module: ieee80211_crypto_ccmp.c

Error Message:
ieee80211_crypto_ccmp.c:290: error: invalid use of undefined type 'struct page'
ieee80211_crypto_ccmp.c:294: error: invalid use of undefined type 'struct page'

Code reference:
static void
rijndael_encrypt(struct crypto_tfm *tfm, const void *src, void *dst) {
{
        struct scatterlist sg_src;
        struct scatterlist sg_dst;

----->  sg_src.page = virt_to_page(src);   <---------------- ERROR
        sg_src.offset = offset_in_page(src);
        sg_src.length = AES_BLOCK_LEN;

----->  sg_dst.page = virt_to_page(dst);   <---------------- ERROR
        sg_dst.offset = offset_in_page(dst);
        sg_dst.length = AES_BLOCK_LEN;
        crypto_cipher_encrypt(tfm, &sg_dst, &sg_src, AES_BLOCK_LEN);
}

I believe this is not the only file with the problem (i assume dot1x would be
similairly affected)

Additional Problems:
The Sandbox violation also exists in this version (there is a seperate bug for
this)
The header file "config.h" has been removed from
/usr/src/linux/include/linux/config.h, but is required by madwifi-old. (should
be fixed as this is a stub header file for <linux/autoconf.h>)

------- Comment #1 From Stefan Schweizer 2007-02-11 12:52:05 0000 -------
care to provide a patch for the problem? I dont think anyone else cares enough
to write one.

------- Comment #2 From Itay Greenspon 2007-02-11 13:59:04 0000 -------
Created an attachment (id=109847) [edit]
Patch to help madwifi-old compile with kernel 2.6.20

------- Comment #3 From Stefan Schweizer 2007-02-12 23:04:54 0000 -------
sorry, does not apply here. Can you please give an ebuild for applying it too?

------- Comment #4 From Itay Greenspon 2007-02-13 08:41:39 0000 -------
Created an attachment (id=110043) [edit]
Apply it manualy

Hi, 
This is corrected version.

Apply it manually by moving into the madwifi-old work-dir:
cd
/var/tmp/portage/net-wireless/madwifi-old-0.0.1417.20060128/work/madwifi-old-r1417-20060128/

madwifi-old-r1417-20060128 # patch -p0 < [path to where you saved
ieee80211_crypto_ccmp.patch]


The driver will then compile, however... it is unstable.
I think it's best to move to madwifi-ng if possible.
(I'll give it another try.. though it didn't work for me at first)

------- Comment #5 From Stefan Schweizer 2007-02-19 21:33:49 0000 -------
thanks, I committed this.

------- Comment #6 From Grant 2007-02-25 22:32:50 0000 -------
I get a failed patch error for patch 2.6.20 when trying to emerge madwifi-old. 
Is that related to this?

------- Comment #7 From Stefan Schweizer 2007-02-26 00:31:24 0000 -------
seems I got the wrong patch, should work now, thanks.

------- Comment #8 From Jakub Moc 2007-02-26 07:27:11 0000 -------
*** Bug 168407 has been marked as a duplicate of this bug. ***

First Last Prev Next    No search results available      Search page      Enter new bug