It's quite possible that on battery power the Mac turns down the AirPort card's power, which could result in slower speeds.
To test the speed of the WiFi connection with battery or AC, set up a particularly largish file somewhere on your network (preferably on an AC powered, wired computer) and copy it wirelessly, first on AC and then on battery. Timing the copy action should tell you if there's any difference between the two situations.