Its not against the law in France: https://skeptics.stackexchange.com/questions/55977/did-franc...
I'm not really sure it matters if wifi is not allowed in schools as cellphones are so prevalent now so you aren't stopping anyone from accessing the internet if they really want to.