"Mauer" is feminine, so dative singular is "der Mauer", plural "den Mauern". Actually one would rather use "an der Wand" (sg.) or "an den Wänden" (pl.) here, though.
By the way, note that "auf" is one of the prepositions that only have dative when used with a location, but accusative with a direction.