RC=2. scanloop does nothing but error out
Where do you see this?
The linux driver have something in common with the windows driver, they are both official atheos drivers and let me know what flags need to be set by the driver in order to even make my hardware function. It is clear (I think) that the windows drivers under genmac are not doing this.
Nothing is clear. You do have a better chance of getting it to work with the driver, and INF files copied from the windows that is on your machine, but that is really only true if you have Win2K, or WinXP. Anything later, and the drivers are probably too new for GENMAC to be able to use them.
If the driver loads (and you say that it does), GENMAC is probably working. Playing with the "flags", as you call them, is not likely to accomplish much, since a lot of them are totally ignored. There could be a problem with the way that XWLAN is interpreting some of the driver information, but I suspect that it is more likely that your setup in XWLAN has something wrong.
To pursue this further, we need to know what is in the WRND32.LOG file, and what is in LANTRAN.LOG. One, or both, of them might offer a clue.