> This should fix attach but there's some other remaining problem.
> The device detaches itself again when I try to use it.

> diff 709e530bc956c51de2da4aff727d8da450babdc4 /usr/src
> blob - 74025dba1aff37e328c92779398e428caef72c04
> file + sys/dev/ic/ar9287.c
> --- sys/dev/ic/ar9287.c
> +++ sys/dev/ic/ar9287.c
> @@ -100,7 +100,8 @@ void        ar9280_spur_mitigate(struct athn_softc *, 
> struct
>  int
>  ar9287_attach(struct athn_softc *sc)
>  {
-       sc->>eep_base = AR9287_EEP_START_LOC;
+       sc->>eep_base = (sc->flags & ATHN_FLAG_USB) ?
> +           AR9287_HTC_EEP_START_LOC : AR9287_EEP_START_LOC;
>         sc->eep_size = sizeof(struct ar9287_eeprom);
>         sc->ngpiopins = (sc->flags & ATHN_FLAG_USB) ? 16 : 11;
>         sc->led_pin = 8;
> blob - 340b28c2f84de4d40f15c42f13b1727a6f497bb0
> file + sys/dev/ic/ar9287reg.h
> --- sys/dev/ic/ar9287reg.h
> +++ sys/dev/ic/ar9287reg.h
> @@ -60,6 +60,7 @@
>   * ROM layout used by AR9287 (2GHz only).
>   */
>  #define AR9287_EEP_START_LOC           128
> +#define AR9287_HTC_EEP_START_LOC       256
>  #define AR9287_NUM_2G_CAL_PIERS                3
>  #define AR9287_NUM_2G_CCK_TARGET_POWERS        3
>  #define AR9287_NUM_2G_20_TARGET_POWERS       3

shit. i have upgraded to 6.5 and now the interface is losing settings
after about 30 seconds:
athn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr b0:48:7a:8c:41:79
        index 17 priority 4 llprio 3
        groups: wlan
        media: IEEE802.11 autoselect (DS1)
        status: no network
        ieee80211: nwid ""

but within 30 seconds it works(though losing a lot of packets).
maybe some more rescue patches? ;)

ps:
athn0 at uhub0 port 5 configuration 1 interface 0 "ATHEROS USB WLAN" rev 
2.00/2.02 addr 3
athn0: AR9287 rev 2 (2T2R), ROM rev 4, address b0:48:7a:8c:41:79

Reply via email to