Hi,
Thanks for patch. I got driver loaded. Now I am trying to connect.
Does not even associate. Any suggestion? Is it possible to do scan, like
"iwlist ath0 scan" on madwifi? With ath5k returns "no scan results".
Thanks,
Ildar

On Mon, Apr 21, 2008 at 2:28 PM, Nick Kossifidis <[EMAIL PROTECTED]> wrote:

>  *Fix radio chip identification on AR5424/2424 during ath5k_hw_attach
>  *Try to assign an RF2413 radio on AR2424 for testing
>
>  Changes-licensed-under: ISC
>
>  Signed-off-by: Nick Kossifidis <[EMAIL PROTECTED]>
>
> ---
> diff --git a/drivers/net/wireless/ath5k/hw.c
> b/drivers/net/wireless/ath5k/hw.c
> index 87e7822..5fb1ae6 100644
> --- a/drivers/net/wireless/ath5k/hw.c
> +++ b/drivers/net/wireless/ath5k/hw.c
> @@ -304,14 +304,20 @@ struct ath5k_hw *ath5k_hw_attach(struct ath5k_softc
> *sc, u8 mac_version)
>                ah->ah_radio = AR5K_RF2413;
>                ah->ah_phy_spending = AR5K_PHY_SPENDING_RF5112A;
>        } else if (ah->ah_radio_5ghz_revision < AR5K_SREV_RAD_SC2) {
> -
>                ah->ah_radio = AR5K_RF5413;
> +               ah->ah_phy_spending = AR5K_PHY_SPENDING_RF5112A;
> +       } else if (ah->ah_radio_5ghz_revision < AR5K_SREV_RAD_5133) {
>
> -               if (ah->ah_mac_srev <= AR5K_SREV_VER_AR5424 &&
> -                       ah->ah_mac_srev >= AR5K_SREV_VER_AR2424)
> +               /* AR5424 */
> +               if (srev >= AR5K_SREV_VER_AR5424) {
> +                       ah->ah_radio = AR5K_RF5413;
>                        ah->ah_phy_spending = AR5K_PHY_SPENDING_RF5424;
> -               else
> +               /* AR2424 */
> +               } else {
> +                       ah->ah_radio = AR5K_RF2413; /* For testing */
>                        ah->ah_phy_spending = AR5K_PHY_SPENDING_RF5112A;
> +               }
> +
>        /*
>         * Register returns 0x4 for radio revision
>         * so ath5k_hw_radio_revision doesn't parse the value
>
> _______________________________________________
> ath5k-devel mailing list
> [email protected]
> https://lists.ath5k.org/mailman/listinfo/ath5k-devel
>
_______________________________________________
ath5k-devel mailing list
[email protected]
https://lists.ath5k.org/mailman/listinfo/ath5k-devel

Reply via email to