Indirect detection of the partial p wave via the s wave in the annihilation cross section of dark matter