Yes, I've did that, it showed met the partial list too, when I executed it from the command line.
@spb:
My adapter seems to need a dummy iwlist scanning, otherwise I've still got a partial list. The dummy iwlist scanning call starts the initial scanning, and at the time the second iwlist scanning is executed (after the one second sleep), the AP list is complete.
Could you test this change too? I know it's allready working for you, but it would be nice to see it tested by somebody else then me.
The extra change is adding this line at line 81 (just after ifconfig up):
iwlist "$WIFI" scanning 2>/dev/null