BeagleBone Uart1 and Uart2 Hardware flow control

Hi guys,
I am working on Beaglebone uarts and my UART1 ,2 ,4, 5 are working fine… Now i want hardware flow control enabled for my sensor. I am using following mux settings:

echo 20 > /sys/kernel/debug/omap_mux/uart1_rxd
echo 0 > /sys/kernel/debug/omap_mux/uart1_txd
echo 30 > /sys/kernel/debug/omap_mux/uart1_rtsn
echo 0 > /sys/kernel/debug/omap_mux/uart1_ctsn

This is my c program on BeagleBone which is setting baudrate and sending data to PC:

fd = open("/dev/ttyO1", O_RDWR | O_NOCTTY | O_NONBLOCK);

fcntl(fd, F_SETFL, 0);
tcgetattr(fd, &options);
cfsetispeed(&options, B115200);
cfsetospeed(&options, B115200);


Now i am receiving data correctly on PC where i am listening (/dev/ttyUSB2 using smart cable) through minicom
so my questions are :

  1. How to enable Hardware flow control in c code on bone?
  2. whether pin mux setting for rts and cts are right?
  3. How can i test that my RTS and CTS are working?