diff -aburN rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.c rtl8187_linux_26.1010.0622.2006-2.6.24/beta-8187/r8187_core.c
|
old
|
new
|
|
| 431 | 431 | void rtl8180_proc_module_init(void) |
| 432 | 432 | { |
| 433 | 433 | DMESG("Initializing proc filesystem"); |
| | 434 | #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) |
| 434 | 435 | rtl8180_proc=create_proc_entry(RTL8187_MODULE_NAME, S_IFDIR, proc_net); |
| | 436 | #else |
| | 437 | rtl8180_proc=create_proc_entry(RTL8187_MODULE_NAME, S_IFDIR, init_net.proc_net); |
| | 438 | #endif |
| 435 | 439 | } |
| 436 | 440 | |
| 437 | 441 | |
| 438 | 442 | void rtl8180_proc_module_remove(void) |
| 439 | 443 | { |
| | 444 | #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) |
| 440 | 445 | remove_proc_entry(RTL8187_MODULE_NAME, proc_net); |
| | 446 | #else |
| | 447 | remove_proc_entry(RTL8187_MODULE_NAME, init_net.proc_net); |
| | 448 | #endif |
| 441 | 449 | } |
| 442 | 450 | |
| 443 | 451 | |
| … |
… |
|
| 2602 | 2610 | |
| 2603 | 2611 | dev = alloc_ieee80211_rtl7(sizeof(struct r8180_priv)); |
| 2604 | 2612 | |
| | 2613 | #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) |
| 2605 | 2614 | SET_MODULE_OWNER(dev); |
| | 2615 | #endif |
| 2606 | 2616 | usb_set_intfdata(intf, dev); |
| 2607 | 2617 | |
| 2608 | 2618 | SET_NETDEV_DEV(dev, &intf->dev); |
diff -aburN rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_crypt_tkip.c rtl8187_linux_26.1010.0622.2006-2.6.24/ieee80211/ieee80211_crypt_tkip.c
|
old
|
new
|
|
| 394 | 394 | #else |
| 395 | 395 | crypto_blkcipher_setkey(tkey->tx_tfm_arc4, rc4key, 16); |
| 396 | 396 | #endif |
| | 397 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)) |
| 397 | 398 | sg.page = virt_to_page(pos); |
| 398 | 399 | sg.offset = offset_in_page(pos); |
| 399 | 400 | sg.length = len + 4; |
| | 401 | #else |
| | 402 | sg_set_page(&sg, virt_to_page(pos), len + 2, offset_in_page(pos)); |
| | 403 | #endif |
| 400 | 404 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)) |
| 401 | 405 | crypto_cipher_encrypt(tkey->tfm_arc4, &sg, &sg, len + 4); |
| 402 | 406 | #else |
| … |
… |
|
| 484 | 488 | #else |
| 485 | 489 | crypto_blkcipher_setkey(tkey->rx_tfm_arc4, rc4key, 16); |
| 486 | 490 | #endif |
| | 491 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)) |
| 487 | 492 | sg.page = virt_to_page(pos); |
| 488 | 493 | sg.offset = offset_in_page(pos); |
| 489 | 494 | sg.length = plen + 4; |
| | 495 | #else |
| | 496 | sg_set_page(&sg, virt_to_page(pos), plen + 4, offset_in_page(pos)); |
| | 497 | #endif |
| 490 | 498 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)) |
| 491 | 499 | crypto_cipher_decrypt(tkey->tfm_arc4, &sg, &sg, plen + 4); |
| 492 | 500 | #else |
| … |
… |
|
| 544 | 552 | printk(KERN_WARNING "michael_mic: tfm_michael == NULL\n"); |
| 545 | 553 | return -1; |
| 546 | 554 | } |
| | 555 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)) |
| 547 | 556 | sg[0].page = virt_to_page(hdr); |
| 548 | 557 | sg[0].offset = offset_in_page(hdr); |
| 549 | 558 | sg[0].length = 16; |
| | 559 | #else |
| | 560 | sg_set_page(&sg[0], virt_to_page(hdr), 16, offset_in_page(hdr)); |
| | 561 | #endif |
| 550 | 562 | |
| | 563 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)) |
| 551 | 564 | sg[1].page = virt_to_page(data); |
| 552 | 565 | sg[1].offset = offset_in_page(data); |
| 553 | 566 | sg[1].length = data_len; |
| | 567 | #else |
| | 568 | sg_set_page(&sg[1], virt_to_page(data), data_len, offset_in_page(data)); |
| | 569 | #endif |
| 554 | 570 | |
| 555 | 571 | #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) |
| 556 | 572 | crypto_digest_init(tkey->tfm_michael); |
diff -aburN rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_crypt_wep.c rtl8187_linux_26.1010.0622.2006-2.6.24/ieee80211/ieee80211_crypt_wep.c
|
old
|
new
|
|
| 190 | 190 | #else |
| 191 | 191 | crypto_blkcipher_setkey(wep->tx_tfm, key, klen); |
| 192 | 192 | #endif |
| | 193 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)) |
| 193 | 194 | sg.page = virt_to_page(pos); |
| 194 | 195 | sg.offset = offset_in_page(pos); |
| 195 | 196 | sg.length = len + 4; |
| | 197 | #else |
| | 198 | sg_set_page(&sg, virt_to_page(pos), len + 4, offset_in_page(pos)); |
| | 199 | #endif |
| 196 | 200 | |
| 197 | 201 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)) |
| 198 | 202 | crypto_cipher_encrypt(wep->tfm, &sg, &sg, len + 4); |
| … |
… |
|
| 246 | 250 | crypto_blkcipher_setkey(wep->rx_tfm, key, klen); |
| 247 | 251 | #endif |
| 248 | 252 | |
| | 253 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)) |
| 249 | 254 | sg.page = virt_to_page(pos); |
| 250 | 255 | sg.offset = offset_in_page(pos); |
| 251 | 256 | sg.length = plen + 4; |
| | 257 | #else |
| | 258 | sg_set_page(&sg, virt_to_page(pos), plen + 4, offset_in_page(pos)); |
| | 259 | #endif |
| 252 | 260 | |
| 253 | 261 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)) |
| 254 | 262 | crypto_cipher_decrypt(wep->tfm, &sg, &sg, plen + 4); |