import tools/pakwif.c from CHDK
add a460 support