1. 01 11月, 2008 13 次提交
  2. 28 10月, 2008 3 次提交
  3. 23 10月, 2008 1 次提交
    • C
      p54: enable 2.4/5GHz spectrum by eeprom bits. · 4cc683c9
      Christian Lamparter 提交于
      Badness at /home/proski/src/linux-2.6/net/mac80211/rx.c:2200
      NIP: c02bc850 LR: c02ab268 CTR: 00000000
      REGS: ef01fcc0 TRAP: 0700   Tainted: G        W  (2.6.27-wl)
      MSR: 00029032 <EE,ME,IR,DR>  CR: 22004084  XER: 20000000
      TASK = c1a58800[1778] 'p54pci' THREAD: ef01e000
      [...]
      NIP [c02bc850] __ieee80211_rx+0x17c/0x638
      LR [c02ab268] ieee80211_tasklet_handler+0x104/0x120
      Call Trace:
      [ef01fd70] [c1a0c020] 0xc1a0c020 (unreliable)
      [ef01fdb0] [c02ab268] ieee80211_tasklet_handler+0x104/0x120
      [...]
      
      the problem was that some older cards are mis-identified and didn't support
      5GHz rates, while they have the right MAC & Synth chip.
      
      This patch changes the way how p54 decides if it should enable 11a channels
      or not.
      Reported-by: NPavel Roskin <proski@gnu.org>
      Signed-off-by: NChristian Lamparter <chunkeey@web.de>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      4cc683c9
  4. 15 10月, 2008 2 次提交
  5. 07 10月, 2008 1 次提交
  6. 01 10月, 2008 1 次提交
    • L
      p54: Fix sparse warnings · 1f1c0e33
      Larry Finger 提交于
      The command
      
      make C=2 CF="-D__CHECK_ENDIAN__" drivers/net/wireless/p54/
      
      generates the following warnings:
      
      .../p54common.c:152:38: warning: incorrect type in argument 1 (different base types)
      .../p54common.c:152:38:    expected restricted __be32 const [usertype] *p
      .../p54common.c:152:38:    got unsigned int *<noident>
      .../p54common.c:184:15: warning: restricted __le32 degrades to integer
      .../p54common.c:185:29: warning: cast to restricted __le16
      .../p54common.c:309:11: warning: symbol 'p54_rf_chips' was not declared.
      		        Should it be static?
      .../p54common.c:313:5: warning: symbol 'p54_parse_eeprom' was not declared.
      		       Should it be static?
      .../p54common.c:620:43: warning: incorrect type in argument 3 (different base types)
      .../p54common.c:620:43:    expected unsigned long [unsigned] [usertype] len
      .../p54common.c:620:43:    got restricted __le16 [usertype] len
      .../p54common.c:780:41: warning: restricted __le16 degrades to integer
      .../p54common.c:781:32: warning: restricted __le16 degrades to integer
      .../p54common.c:1250:28: warning: incorrect type in argument 2 (different base types)
      .../p54common.c:1250:28:    expected unsigned short [unsigned] [usertype] filter_type
      .../p54common.c:1250:28:    got restricted __le16 [usertype] filter_type
      .../p54common.c:1252:28: warning: incorrect type in argument 2 (different base types)
      .../p54common.c:1252:28:    expected unsigned short [unsigned] [usertype] filter_type
      .../p54common.c:1252:28:    got restricted __le16 [usertype] filter_type
      .../p54common.c:1257:42: warning: incorrect type in argument 2 (different base types)
      .../p54common.c:1257:42:    expected unsigned short [unsigned] [usertype] filter_type
      .../p54common.c:1257:42:    got restricted __le16
      .../p54common.c:1260:42: warning: incorrect type in argument 2 (different base types)
      .../p54common.c:1260:42:    expected unsigned short [unsigned] [usertype] filter_type
      .../p54common.c:1260:42:    got restricted __le16
      .../p54usb.c:228:10: warning: restricted __le32 degrades to integer
      .../p54usb.c:228:23: warning: restricted __le32 degrades to integer
      .../p54usb.c:228:7: warning: incorrect type in assignment (different base types)
      .../p54usb.c:228:7:    expected restricted __le32 [assigned] [usertype] chk
      .../p54usb.c:228:7:    got unsigned int
      .../p54usb.c:221:8: warning: symbol 'p54u_lm87_chksum' was not declared.
      		    Should it be static?
      
      All of the above have been fixed. One question, however, remains: In struct
      bootrec, the array "data" is treated in many places as native CPU order, but
      it may be little-endian everywhere. As far as I can tell, this driver has only
      been used with little-endian hardware.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      1f1c0e33
  7. 16 9月, 2008 1 次提交
  8. 12 9月, 2008 5 次提交
  9. 09 9月, 2008 2 次提交
  10. 06 9月, 2008 5 次提交
  11. 30 8月, 2008 4 次提交
  12. 23 8月, 2008 1 次提交
  13. 18 8月, 2008 1 次提交
    • C
      p54u: reset skb's data/tail pointer on requeue · d47c3ceb
      Christian Lamparter 提交于
      (Only important for USB V1 Adaptors)
      
      If an incoming frame wasn't accepted by p54_rx function
      the skb will be reused for new frames...
      
      But, we must not forget to set the skb's data pointers into
      the same state in which it was initialized by p54u_init_urbs.
      
      Otherwise we either end up with 16 bytes less on every requeue,
      or if a new frame is worthy enough to be accepted, the data is
      in the wrong place (urb->transfer_buffer wasn't updated!) and mac80211
      has a hard time to recognize it...
      Signed-off-by: NChristian Lamparter <chunkeey@web.de>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      d47c3ceb