Scaling function in AdS/CFT from the O(6) sigma model