Modify

Opened 2 years ago

Closed 2 years ago

#21340 closed defect (fixed)

mac80211: cannot disable HT in adhoc mode

Reported by: NickSchaf Owned by: developers
Priority: normal Milestone: Designated Driver (Trunk)
Component: packages Version: Chaos Calmer 15.05
Keywords: mac80211 Cc:

Description

Specifying 'NONE' or 'NOHT' for htmode on a wireless device of type mac80211 has no effect when using an adhoc interface on that device.

Location of the error:
/lib/netifd/wireless/mac80211.sh, function mac80211_setup_adhoc_htmode()
HT mode 'NONE' or 'NOHT' falls through to the default case, which sets ibss_htmode to an empty string. (ibss_mode is later used in function mac80211_setup_adhoc(), passed as an argument to iw, but since the string is emtpy, iw uses is left to use defaults.)
Suggest adding the following case in function mac80211_setup_adhoc_htmode(), immediately before the default case:

                NONE|NOHT) ibss_htmode="NOHT";;

(Inserted before line 528 in the Chaos Calmer version of the script.)

This will properly support the 'NONE'/'NOHT' options without affecting existing configurations that do not specify htmode.

Tested with both Atheros and Ralink/Mediatek radios on various platforms.

Attachments (0)

Change History (1)

comment:1 Changed 2 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

Fixed with r47813 - thank you!

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.