005-pci_fixes.patch 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. Index: acx-mac80211-20080805/acx_func.h
  2. ===================================================================
  3. --- acx-mac80211-20080805.orig/acx_func.h 2009-05-26 20:58:10.000000000 +0200
  4. +++ acx-mac80211-20080805/acx_func.h 2009-05-26 20:58:11.000000000 +0200
  5. @@ -623,7 +623,7 @@
  6. struct ieee80211_vif *vif,
  7. struct ieee80211_bss_conf *info,
  8. u32 changes);
  9. -int acx_net_config(struct ieee80211_hw* ieee, struct ieee80211_conf *conf);
  10. +int acx_net_config(struct ieee80211_hw* ieee, u32 changed);
  11. int acx_net_get_tx_stats(struct ieee80211_hw* ieee, struct ieee80211_tx_queue_stats *stats);
  12. int acx_net_conf_tx(struct ieee80211_hw* ieee, u16 queue,
  13. const struct ieee80211_tx_queue_params *params);
  14. Index: acx-mac80211-20080805/common.c
  15. ===================================================================
  16. --- acx-mac80211-20080805.orig/common.c 2009-05-26 20:58:10.000000000 +0200
  17. +++ acx-mac80211-20080805/common.c 2009-05-26 20:58:11.000000000 +0200
  18. @@ -4300,9 +4300,10 @@
  19. ** Derived from mac80211 code, p54, bcm43xx_mac80211
  20. **
  21. */
  22. -int acx_net_config(struct ieee80211_hw *hw, struct ieee80211_conf *conf)
  23. +int acx_net_config(struct ieee80211_hw *hw, u32 changed)
  24. {
  25. acx_device_t *adev = ieee2adev(hw);
  26. + struct ieee80211_conf *conf = &hw->conf;
  27. unsigned long flags;
  28. FN_ENTER;
  29. Index: acx-mac80211-20080805/pci.c
  30. ===================================================================
  31. --- acx-mac80211-20080805.orig/pci.c 2009-05-26 20:58:10.000000000 +0200
  32. +++ acx-mac80211-20080805/pci.c 2009-05-30 20:44:29.000000000 +0200
  33. @@ -3105,7 +3105,7 @@
  34. /* let chip do RTS/CTS handshaking before sending
  35. * in case packet size exceeds threshold */
  36. - if (info->flags & IEEE80211_TX_CTL_USE_RTS_CTS)
  37. + if (info->flags & IEEE80211_TX_RC_USE_RTS_CTS)
  38. SET_BIT(Ctl2_8, DESC_CTL2_RTS);
  39. else
  40. CLEAR_BIT(Ctl2_8, DESC_CTL2_RTS);
  41. @@ -3120,7 +3120,7 @@
  42. /* put_txcr(adev, txdesc, clt, rate_cur); deprecated by mac80211 */
  43. txdesc->total_length = cpu_to_le16(len);
  44. - wlhdr_len = ieee80211_get_hdrlen(le16_to_cpu(wireless_header->frame_control));
  45. + wlhdr_len = ieee80211_hdrlen(le16_to_cpu(wireless_header->frame_control));
  46. hostdesc2->length = cpu_to_le16(len - wlhdr_len);
  47. /*
  48. if (!ieeectl->do_not_encrypt && ieeectl->key_idx>= 0)
  49. @@ -3444,8 +3444,8 @@
  50. /* And finally report upstream */
  51. if (hostdesc)
  52. {
  53. - info->status.excessive_retries = rts_failures;
  54. - info->status.retry_count = ack_failures;
  55. + //info->status.excessive_retries = rts_failures;
  56. + //info->status.retry_count = ack_failures;
  57. ieee80211_tx_status(adev->ieee, hostdesc->skb);
  58. }
  59. /* update pointer for descr to be cleaned next */
  60. @@ -4303,6 +4303,7 @@
  61. }
  62. acx_init_task_scheduler(adev);
  63. + adev->ieee->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION);
  64. result = ieee80211_register_hw(adev->ieee);
  65. if (OK != result) {
  66. printk("acx: ieee80211_register_hw() FAILED: %d\n", result);