How do I get past this?

I'm at this part where I need to swing up, bounce off the wall, and grap the 2nd pole. However, everytime I hit the wall, he just falls down, not jumping off the wall but falling

I'm at this part where I need to swing up, bounce off the wall, and grap the 2nd pole. However, everytime I hit the wall, he just falls down, not jumping off the wall but falling