Property registered as it is for male descendant after wife's death

My maternal grandpa registered part of his property to his wife in 1983 mentioning she(grandma) can enjoy the property and after her death it should be enjoyed only by his male descendants. At that time of registration in 1983 my grandpa was having one boy child(my uncle - deceased in May, 2005) and one girl child(my mom). Does my grandma have the power to gift deed this property to my mother? Because, in 1998 my grandma gift deeded the property to my mother. Now my uncle's son are claiming that property saying what my grandma gifted to my mom is not valid. Please clarify. and this is an ancestoral property, not earned by my mother's father. In this case, does my maternal grandpa still have the right to say that his wife (my grandma) can enjoy the property and after her death it should be enjoyed only by his male descendants? Can my mother and my wife(my mother's only brother's daughter) claim their share in this ancestral property? My mother's only brother deceased in May, 2005. My maternal grandpa expired in 2018. Maternal grandma and uncle's wife and two sons and one daughter(my wife) are alive.