ospf link quality

does ospf have some regulation that can increase cost depending on link quality?

No, OSPF can’t increase cost based on link quality, but you can write a script to change costs based on some parameters.