gvalkov

009-mwlwifi-2019-03-02-DFS-free

Jan 3rd, 2020
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.28 KB | None | 0 0
  1. Index: mwlwifi-2019-03-02-31d93860/hif/fwcmd.c
  2. ===================================================================
  3. --- mwlwifi-2019-03-02-31d93860.orig/hif/fwcmd.c
  4. +++ mwlwifi-2019-03-02-31d93860/hif/fwcmd.c
  5. @@ -1141,6 +1141,9 @@ int mwl_fwcmd_max_tx_power(struct ieee80
  6.     int i, tmp;
  7.     int rc = 0;
  8.  
  9. +   // do not set tx power
  10. +   return rc;
  11. +
  12.     if ((priv->chip_type != MWL8997) && (priv->forbidden_setting))
  13.         return rc;
  14.  
  15. @@ -1188,6 +1191,13 @@ int mwl_fwcmd_max_tx_power(struct ieee80
  16.         else
  17.             sub_ch = EXT_CH_BELOW_CTRL_CH;
  18.         break;
  19. +   case NL80211_CHAN_WIDTH_160:
  20. +       width = CH_160_MHZ_WIDTH;
  21. +       if (conf->chandef.center_freq1 > channel->center_freq)
  22. +           sub_ch = EXT_CH_ABOVE_CTRL_CH;
  23. +       else
  24. +           sub_ch = EXT_CH_BELOW_CTRL_CH;
  25. +       break;
  26.     default:
  27.         return -EINVAL;
  28.     }
  29. @@ -1250,6 +1260,9 @@ int mwl_fwcmd_tx_power(struct ieee80211_
  30.     int i, tmp;
  31.     int rc = 0;
  32.  
  33. +   // do not set tx power
  34. +   return rc;
  35. +
  36.     if ((priv->chip_type != MWL8997) && (priv->forbidden_setting))
  37.         return rc;
  38.  
  39. @@ -1297,6 +1310,13 @@ int mwl_fwcmd_tx_power(struct ieee80211_
  40.         else
  41.             sub_ch = EXT_CH_BELOW_CTRL_CH;
  42.         break;
  43. +   case NL80211_CHAN_WIDTH_160:
  44. +       width = CH_160_MHZ_WIDTH;
  45. +       if (conf->chandef.center_freq1 > channel->center_freq)
  46. +           sub_ch = EXT_CH_ABOVE_CTRL_CH;
  47. +       else
  48. +           sub_ch = EXT_CH_BELOW_CTRL_CH;
  49. +       break;
  50.     default:
  51.         return -EINVAL;
  52.     }
  53. @@ -3163,6 +3183,10 @@ int mwl_fwcmd_set_cdd(struct ieee80211_h
  54.     struct mwl_priv *priv = hw->priv;
  55.     struct hostcmd_cmd_set_cdd *pcmd;
  56.  
  57. +   // force-enable Cyclic delay diversity
  58. +   // https://en.wikipedia.org/wiki/Cyclic_delay_diversity
  59. +   priv->cdd = 1;
  60. +  
  61.     pcmd = (struct hostcmd_cmd_set_cdd *)&priv->pcmd_buf[0];
  62.  
  63.     mutex_lock(&priv->fwcmd_mutex);
  64. @@ -3438,6 +3462,9 @@ int mwl_fwcmd_get_fw_region_code_sc4(str
  65.     struct hostcmd_cmd_get_fw_region_code_sc4 *pcmd;
  66.     u16 cmd;
  67.  
  68. +   // do not load the firmware region
  69. +   return -EIO;
  70. +
  71.     pcmd = (struct hostcmd_cmd_get_fw_region_code_sc4 *)&priv->pcmd_buf[0];
  72.  
  73.     mutex_lock(&priv->fwcmd_mutex);
  74. @@ -3478,6 +3505,9 @@ int mwl_fwcmd_get_pwr_tbl_sc4(struct iee
  75.     int status;
  76.     u16 cmd;
  77.  
  78. +   // do not load the regulatory power table
  79. +   return -EIO;
  80. +
  81.     pcmd = (struct hostcmd_cmd_get_device_pwr_tbl_sc4 *)&priv->pcmd_buf[0];
  82.  
  83.     mutex_lock(&priv->fwcmd_mutex);
Add Comment
Please, Sign In to add comment