excamera, what I'm hacking on, daily.

jamesb@excamera.com


       
Sat, 15 May 2004

wi hostap rate trouble
I'm trying to get my new FreeBSD 5.2-CURRENT box to be a good AP with a Intersil 2.5 802.11b card, but its rate is limited to 2Mbps. This is affecting other people too, so I'm having a look at the driver. Some context:

  • FreeBSD 4.X apparently great at 5.5 and 11
  • I found the Intersil manual, my copy here
  • Incremental kernel build:
    cd /usr/obj/usr/src/sys/GENERIC
    make && make install
    

Some notes on the driver:

  1. The 4.X code does not set WI_RID_BASIC_RATE or WI_RID_SUPPORT_RATE. The 5.X code sets them thus:
        wi_write_val(sc, WI_RID_BASIC_RATE, 0x03);   /* 1, 2 */
        wi_write_val(sc, WI_RID_SUPPORT_RATE, 0x0f); /* 1, 2, 5.5, 11 */
    
  2. On page 3-2 of the manual ("Basic Initialization in Firmware-based AP Mode") it specifies that the driver should set data rate for MAC port 0 by writing to TxRateControl0 (0xFC9E). Neither 4.X not 5.X code does this.
    #define WI_RID_TX_RATE0		0xFC9E
    

*