Search Linux Wireless

Re: [PATCH] rtl8187b work in progress...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Em Tuesday 01 April 2008 21:09:57 Herton Ronaldo Krzesinski escreveu:
> Em Tuesday 01 April 2008 15:24:28 John W. Linville escreveu:
> @@ -432,10 +688,24 @@ static int rtl8187_start(struct ieee8021
>  	u32 reg;
>  	int ret;
>  
> -	ret = rtl8187_init_hw(dev);
> +	ret = (priv->hw_type == RTL8187) ? rtl8187_init_hw(dev) :
> +					   rtl8187b_init_hw(dev);
> +	//ret = rtl8187_init_hw(dev);
>  	if (ret)
>  		return ret;
>  
> +	if (priv->hw_type == RTL8187B) {
> +		rtl818x_iowrite32(priv, &priv->map->TX_CONF,
> +				  RTL818X_TX_CONF_DURPROCMODE |
> +				  RTL818X_TX_CONF_DISREQQSIZE |
> +				  RTL818X_TX_CONF_MAXDMA_2048 |
> +				  (7 << 8) | 7); //TODO: define, short-long retry limit
> +		reg = rtl818x_ioread8(priv, &priv->map->MSR);
> +		reg |= RTL818X_MSR_ENEDCA;
> +		rtl818x_iowrite8(priv, &priv->map->MSR, reg);
> +		return 0;
                ^^^
Now that I removed this return (obviously wrong heh) It seems to work ok :),
the rtl8187b I have here at least now successfuly scans for aps/receive data,
later I'll do more testing/improvements.

-- 
[]'s
Herton
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux