When our sisters are deprived from the right to come to the mosques, or given sub-standard accommodations and treated disrespectfully, it is only natural that some of them will take matters into their own hands and counter-react.
Some of that counter-reaction will be legitimate, and some illegitimate.
Rather than worry about what various counter-reactions have been and how legal they are, I believe we need to concentrate on the root cause of the problem. It is an undeniable reality that women’s prayer spaces (in those masjids that actually have them – for quite a few masjids still don’t even have such spaces) are less accessible, less clean, and less maintained than the men’s sections. Women have to deal with crying children, bad microphones, no visual access to the Imam/khatib, dank hallways to get in and out, and many other issues. Perhaps the worst issue of all: too many of our brothers comment on what they assume is inappropriate clothing when our sisters come to the masjid. This makes many sisters feel uncomfortable simply coming to the masjid.
In a day and age where our sisters are going everywhere, visible everywhere, active everywhere, the BEST place for them to be is in the masjid, praying to Allah, and being with fellow Muslims, and learning about their faith. Rather than believe that they should stay home, we need to contextualize our environment and ENCOURAGE our sisters to come to the most blessed places in their cities: their mosques. We need to make sister’s facilities as neat and clean and well-lit and accessible as the brothers. We either put them in the same hall as the men (as was the case in the time of the Prophet (SAW), behind the men), or provide state of the art AV access to the lectures/khutbah. We need separate rooms (also with AV) for sisters with young infants so that others can also pray and listen in peace. And most importantly, we need to tell our men that it is not THEIR business (unless a family man is dealing with his own wife/daughter) how other women dress. Let the people in charge of the masjid deal with dress codes.
Frankly, in this day and age, if a sister actually comes to the masjid (rather than going shopping or watching a movie or doing any other activity), we should WELCOME her, have the sisters get to know her, and make her feel special. Her priority is not the scarf on her head but her attachment to Allah. Once she feels that attachment, the rest will follow.
Our sisters in faith are our mothers, wives, and daughters. How can we treat them any less than we expect to be treated ourselves in this regard? And how can we deprive them of coming to the masjid when our Prophet (SAW) explicitly forbade it in his own time, and our time requires even more spirituality and education for them?!