apply same changes as in madwifi for building against k32